| 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 SSMEMY (IA, |
| 9 |
& DONPS, KIDNS, KNNNS, KIXNNS, KLTNNS, |
| 10 |
& DOESS, KIDSS, KNESS, KNNSS, KIXESS, KIXNSS, KLTESS, KLTNSS) |
| 11 |
C======================================================================= |
| 12 |
|
| 13 |
C --*** SSMEMY *** (MESH) Gets node set and side set info |
| 14 |
C -- Written by Amy Gilkey - revised 04/11/88 |
| 15 |
C -- D. P. Flanagan, 11/17/82 |
| 16 |
C -- |
| 17 |
C --SSMEMY gets the memory for the node sets and side |
| 18 |
C --sets. |
| 19 |
C -- |
| 20 |
C --This routine finds the following dynamic memory arrays: |
| 21 |
C -- IDNPS - IN - the node set ID for each set |
| 22 |
C -- NNNPS - IN - the number of nodes for each set |
| 23 |
C -- IXNNPS - IN - the index of the first node for each set |
| 24 |
C -- LTNNPS - IN - the nodes for all sets |
| 25 |
C -- IDESS - IN - the side set ID for each set |
| 26 |
C -- NEESS - IN - the number of elements for each set |
| 27 |
C -- NNESS - IN - the number of nodes for each set |
| 28 |
C -- IXEESS - IN - the index of the first element for each set |
| 29 |
C -- IXNESS - IN - the index of the first node for each set |
| 30 |
C -- LTEESS - IN - the elements for all sets |
| 31 |
C -- LTNESS - IN - the nodes for all sets |
| 32 |
C -- |
| 33 |
C --Parameters: |
| 34 |
C -- A - IN - the dynamic memory base array |
| 35 |
C -- DONPS - IN - get node set memory iff true |
| 36 |
C -- KIDNS - OUT - the dynamic memory index of IDNPS |
| 37 |
C -- KNNNS - OUT - the dynamic memory index of NNNPS |
| 38 |
C -- KIXNNS - OUT - the dynamic memory index of IXNNPS |
| 39 |
C -- KLTNNS - OUT - the dynamic memory index of LTNNPS |
| 40 |
C -- DOESS - IN - get side set memory iff true |
| 41 |
C -- KIDSS - OUT - the dynamic memory index of IDESS |
| 42 |
C -- KNESS - OUT - the dynamic memory index of NEESS |
| 43 |
C -- KNNSS - OUT - the dynamic memory index of NNESS |
| 44 |
C -- KIXESS - OUT - the dynamic memory index of IXEESS |
| 45 |
C -- KIXNSS - OUT - the dynamic memory index of IXNESS |
| 46 |
C -- KLTESS - OUT - the dynamic memory index of LTEESS |
| 47 |
C -- KLTNSS - OUT - the dynamic memory index of LTNESS |
| 48 |
C -- |
| 49 |
C --Common Variables: |
| 50 |
C -- Uses NUMNPS, LNPSNL, NUMESS, LESSEL, LESSNL of /DBNUMG/ |
| 51 |
|
| 52 |
include 'dbnumgq.blk' |
| 53 |
|
| 54 |
DIMENSION IA(*) |
| 55 |
LOGICAL DONPS, DOESS |
| 56 |
logical firstss |
| 57 |
data firstss /.true./ |
| 58 |
|
| 59 |
IF (DONPS) THEN |
| 60 |
CALL MDFIND ('IDNPS', KIDNS, NUMNPS) |
| 61 |
CALL MDFIND ('NNNPS', KNNNS, NUMNPS) |
| 62 |
CALL MDFIND ('IXNNPS', KIXNNS, IDUM) |
| 63 |
CALL MDFIND ('LTNNPS', KLTNNS, N) |
| 64 |
ELSE |
| 65 |
KIDNS = 1 |
| 66 |
KNNNS = 1 |
| 67 |
KIXNNS = 1 |
| 68 |
KLTNNS = 1 |
| 69 |
END IF |
| 70 |
|
| 71 |
IF (DOESS) THEN |
| 72 |
if (firstss) then |
| 73 |
firstss = .false. |
| 74 |
call getssn(ia, ierr) |
| 75 |
end if |
| 76 |
CALL MDFIND ('IDESS', KIDSS, NUMESS) |
| 77 |
CALL MDFIND ('NEESS', KNESS, NUMESS) |
| 78 |
CALL MDFIND ('NNESS', KNNSS, NUMESS) |
| 79 |
CALL MDFIND ('IXEESS', KIXESS, IDUM) |
| 80 |
CALL MDFIND ('IXNESS', KIXNSS, IDUM) |
| 81 |
CALL MDFIND ('LTEESS', KLTESS, N) |
| 82 |
CALL MDFIND ('LTNESS', KLTNSS, N) |
| 83 |
ELSE |
| 84 |
KIDSS = 1 |
| 85 |
KNESS = 1 |
| 86 |
KNNSS = 1 |
| 87 |
KIXESS = 1 |
| 88 |
KIXNSS = 1 |
| 89 |
KLTESS = 1 |
| 90 |
KLTNSS = 1 |
| 91 |
END IF |
| 92 |
|
| 93 |
CALL MDSTAT (NERR, MEM) |
| 94 |
IF (NERR .GT. 0) GOTO 100 |
| 95 |
|
| 96 |
100 CONTINUE |
| 97 |
RETURN |
| 98 |
END |