| 1 |
C Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
C NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
C |
| 5 |
C See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
C======================================================================= |
| 8 |
subroutine dobnd (x, y, z, numelb, nlink, idelb, link, |
| 9 |
$ cosin, nodes, isbnd, numnp, ndim, nelblk) |
| 10 |
C======================================================================= |
| 11 |
real x(*), y(*), z(*) |
| 12 |
integer numelb(*), nlink(*), idelb(*), link(*) |
| 13 |
real cosin(ndim,*) |
| 14 |
integer nodes(*) |
| 15 |
logical isbnd(*) |
| 16 |
|
| 17 |
ielnk = 0 |
| 18 |
iel1 = 0 |
| 19 |
do 5 i=1, numnp |
| 20 |
isbnd(i) = .FALSE. |
| 21 |
5 continue |
| 22 |
|
| 23 |
do 100 iblk = 1, nelblk |
| 24 |
|
| 25 |
do 10 i=1, numnp |
| 26 |
cosin(1,i) = 0.0 |
| 27 |
cosin(2,i) = 0.0 |
| 28 |
if (ndim .eq. 3) cosin(3,i) = 0.0 |
| 29 |
10 continue |
| 30 |
|
| 31 |
islnk = ielnk+1 |
| 32 |
ielnk = ielnk + nlink(iblk) * numelb(iblk) |
| 33 |
|
| 34 |
C ... ISBND(node) = .TRUE. if boundary node at return from donrm* |
| 35 |
|
| 36 |
if (ndim .eq. 2) then |
| 37 |
call donrm2( nodes, isbnd, cosin, numelb(iblk), link(islnk), |
| 38 |
$ x, y, nlink(iblk), numnp) |
| 39 |
else |
| 40 |
call donrm3( nodes, isbnd, cosin, numelb(iblk), link(islnk), |
| 41 |
$ x, y, z, nlink(iblk), numnp) |
| 42 |
end if |
| 43 |
iel1 = iel1 + numelb(iblk) |
| 44 |
100 continue |
| 45 |
return |
| 46 |
end |