| 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 WRXYZ (NTXT, NDIM, NUMNP, XN, YN, ZN, nameco, namlen) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** WRXYZ *** (EXOTXT) Write database coordinates |
| 12 |
C -- Written by Amy Gilkey - revised 02/27/86 |
| 13 |
C -- |
| 14 |
C --WRXYZ writes the coordinate array from the database. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NTXT - IN - the text file |
| 18 |
C -- NDIM - IN - the number of coordinates per node |
| 19 |
C -- NUMNP - IN - the number of nodes |
| 20 |
C -- XN, YN, ZN - IN - the coordinates |
| 21 |
C -- |
| 22 |
C --Database must be positioned at start of coordinates upon entry; |
| 23 |
C --upon exit at end of coordinates. |
| 24 |
|
| 25 |
REAL XN(*), YN(*), ZN(*) |
| 26 |
character*(namlen) nameco(*) |
| 27 |
|
| 28 |
WRITE (NTXT, '(A)') |
| 29 |
& '! Coordinate names' |
| 30 |
write (ntxt, 10020) (nameco(i),i=1,ndim) |
| 31 |
|
| 32 |
WRITE (NTXT, '(A)') '! Coordinates' |
| 33 |
|
| 34 |
DO 100 INP = 1, NUMNP |
| 35 |
IF (NDIM .EQ. 1) THEN |
| 36 |
WRITE (NTXT, 10000) XN(INP) |
| 37 |
ELSE IF (NDIM .EQ. 2) THEN |
| 38 |
WRITE (NTXT, 10000) XN(INP), YN(INP) |
| 39 |
ELSE IF (NDIM .EQ. 3) THEN |
| 40 |
WRITE (NTXT, 10000) XN(INP), YN(INP), ZN(INP) |
| 41 |
END IF |
| 42 |
100 CONTINUE |
| 43 |
|
| 44 |
RETURN |
| 45 |
10000 FORMAT (5(1pE16.7)) |
| 46 |
10020 FORMAT (3(A,1x)) |
| 47 |
END |