| 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 |
*DECK,RDB2 |
| 9 |
SUBROUTINE RDB2 (IDBLKB,IDBLKA,ICONB,NDLSTB) |
| 10 |
|
| 11 |
C ****************************************************************** |
| 12 |
|
| 13 |
C SUBROUTINE TO GET MESH B DATA |
| 14 |
|
| 15 |
C Calls subroutine ERROR |
| 16 |
|
| 17 |
C Called by MAPVAR |
| 18 |
|
| 19 |
C ****************************************************************** |
| 20 |
|
| 21 |
C IDBLKA INT Element block I.D. - donor mesh |
| 22 |
C IDBLKB INT Element block I.D. - recipient mesh |
| 23 |
C ICONB INT Connectivity of block in donor mesh (1:nelndb,1:numebb) |
| 24 |
C NDLSTB INT Vector of nodes in element block donor mesh (1:nodesb) |
| 25 |
|
| 26 |
C ****************************************************************** |
| 27 |
|
| 28 |
character*(32) typ,typa |
| 29 |
|
| 30 |
include 'bmesh.blk' |
| 31 |
include 'ebbyeb.blk' |
| 32 |
include 'ex2tp.blk' |
| 33 |
|
| 34 |
DIMENSION ICONB(NELNDB,*),NDLSTB(*) |
| 35 |
|
| 36 |
C ****************************************************************** |
| 37 |
|
| 38 |
C READ ELEMENT NAMES AND ID BLOCKS |
| 39 |
|
| 40 |
CALL EXGELB(NTP3EX,IDBLKB,TYP,NUMEBB,NELNDB,NATRIB,IERR) |
| 41 |
CALL EXUPCS(TYP) |
| 42 |
CALL EXGELB(NTP2EX,IDBLKA,TYPA,IDUM,IDUM,IDUM,IERR) |
| 43 |
CALL EXUPCS(TYPA) |
| 44 |
|
| 45 |
c check here for match of mesh-A element block to mesh-B element block. |
| 46 |
c Probably need to put this into a DO LOOP over all element block id's |
| 47 |
c in mesh B. For now, assume that element blocks match if id's match. |
| 48 |
c Only check element types. |
| 49 |
|
| 50 |
IF (TYP(1:3) .NE. TYPA(1:3)) THEN |
| 51 |
CALL ERROR('RDB2', |
| 52 |
& 'ELEMENT TYPE MISMATCH - MESH-B DOES NOT MATCH MESH-A', |
| 53 |
& 'ELEMENT BLOCK', IDBLKA,' ',0, |
| 54 |
& 'Execution will continue, but verify that results are OK', |
| 55 |
& ' ',0) |
| 56 |
END IF |
| 57 |
|
| 58 |
CALL EXGELC(NTP3EX,IDBLKB,ICONB(1,1),IERR) |
| 59 |
|
| 60 |
DO 5 I = 1,NODESB |
| 61 |
NDLSTB(I) = 0 |
| 62 |
5 CONTINUE |
| 63 |
|
| 64 |
DO 10 IEL = 1, NUMEBB |
| 65 |
DO 20 INODE = 1, NELNDB |
| 66 |
NDLSTB(ICONB(INODE,IEL)) = 1 |
| 67 |
20 CONTINUE |
| 68 |
10 CONTINUE |
| 69 |
|
| 70 |
NUMNDB = 0 |
| 71 |
|
| 72 |
DO 30 I = 1, NODESB |
| 73 |
IF (NDLSTB(I) .EQ. 1)THEN |
| 74 |
NUMNDB = NUMNDB + 1 |
| 75 |
NDLSTB(NUMNDB) = I |
| 76 |
END IF |
| 77 |
30 CONTINUE |
| 78 |
|
| 79 |
RETURN |
| 80 |
END |