| 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 DBOXYZ (NDB, NDIM, NUMNP, XN, YN, ZN) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** DBOXYZ *** (EXOLIB) Write database coordinates |
| 12 |
C -- Written by Amy Gilkey - revised 02/27/86 |
| 13 |
C -- |
| 14 |
C --DBOXYZ writes the coordinate array to the database. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NDB - IN - the database 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 |
INTEGER NDB |
| 26 |
INTEGER NDIM, NUMNP |
| 27 |
REAL XN(*), YN(*), ZN(*) |
| 28 |
|
| 29 |
IF ((NUMNP .GT. 0) .AND. (NDIM .GT. 0)) THEN |
| 30 |
IF (NDIM .EQ. 1) THEN |
| 31 |
WRITE (NDB) (XN(INP), INP=1,NUMNP) |
| 32 |
ELSE IF (NDIM .EQ. 2) THEN |
| 33 |
WRITE (NDB) (XN(INP), INP=1,NUMNP), (YN(INP), INP=1,NUMNP) |
| 34 |
ELSE IF (NDIM .GE. 3) THEN |
| 35 |
WRITE (NDB) (XN(INP), INP=1,NUMNP), (YN(INP), INP=1,NUMNP), |
| 36 |
& (ZN(INP), INP=1,NUMNP) |
| 37 |
ELSE |
| 38 |
WRITE (NDB) 0 |
| 39 |
END IF |
| 40 |
ELSE |
| 41 |
WRITE (NDB) 0 |
| 42 |
END IF |
| 43 |
|
| 44 |
RETURN |
| 45 |
END |