| 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 |
subroutine getssn(ia, ierr) |
| 8 |
|
| 9 |
include 'dbase.blk' |
| 10 |
|
| 11 |
integer ia(*) |
| 12 |
|
| 13 |
CALL MDFIND ('LTSESS', KLTSSS, LESSEL) |
| 14 |
CALL MDFIND ('IXNESS', KIXNSS, NUMESS) |
| 15 |
CALL MDFIND ('IDESS', KIDSS, NUMESS) |
| 16 |
CALL MDFIND ('LTNNSS', KLTNNN, LESSEL) |
| 17 |
CALL MDFIND ('LTNESS', KLTNSS, LESSNL) |
| 18 |
CALL MDFIND ('NNESS', KNNSS, NUMESS) |
| 19 |
|
| 20 |
c ...Convert sides to nodes.... a(kltsss), |
| 21 |
C offset into element list for current side set |
| 22 |
isoff = 0 |
| 23 |
C node count for current side set |
| 24 |
nodcnt = 0 |
| 25 |
do i=0,numess-1 |
| 26 |
C update index array |
| 27 |
ia(kixnss+i)=nodcnt+1 |
| 28 |
C get num of sides & df |
| 29 |
call exgsp(ndb,ia(kidss+i),nsess,ndess,ierr) |
| 30 |
if (ierr .gt. 0) goto 170 |
| 31 |
|
| 32 |
C get side set nodes |
| 33 |
if (nsess .gt. 0) then |
| 34 |
call exgssn(ndb,ia(kidss+i),ia(kltnnn+isoff), |
| 35 |
& ia(kltnss+nodcnt),ierr) |
| 36 |
if (ierr .gt. 0) goto 170 |
| 37 |
end if |
| 38 |
nness = 0 |
| 39 |
C sum node counts to calculate next index |
| 40 |
do ii=0,nsess-1 |
| 41 |
nness=nness+ia(kltnnn+isoff+ii) |
| 42 |
end do |
| 43 |
ia(knnss+i)=nness |
| 44 |
nodcnt=nodcnt+nness |
| 45 |
isoff=isoff+nsess |
| 46 |
end do |
| 47 |
|
| 48 |
170 continue |
| 49 |
return |
| 50 |
end |