| 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 WRINIT (NTXT, VERS, TITLE, NDIM, NUMNP, NUMEL, NELBLK, |
| 9 |
& NUMNPS, LNPSNL, LNPSDF, NUMESS, LESSEL, LESSNL, |
| 10 |
& LESSDF, QAINFO, NAMLEN) |
| 11 |
C======================================================================= |
| 12 |
|
| 13 |
C --*** WRINIT *** (EXOTXT) Write database title and initial variables |
| 14 |
C -- Written by Amy Gilkey - revised 12/04/87 |
| 15 |
C -- Modified for ExodusIIv2 database format 10/12/95 |
| 16 |
C -- |
| 17 |
C --WRINIT writes the title and the initial variables from the database. |
| 18 |
C -- |
| 19 |
C --Parameters: |
| 20 |
C -- NTXT - IN - the text file |
| 21 |
C -- VERS - IN - the version number |
| 22 |
C -- TITLE - IN - the database title |
| 23 |
C -- NDIM - IN - the number of coordinates per node |
| 24 |
C -- NUMNP - IN - the number of nodes |
| 25 |
C -- NUMEL - IN - the number of elements |
| 26 |
C -- NELBLK - IN - the number of element blocks |
| 27 |
C -- NUMNPS - IN - the number of nodal point sets |
| 28 |
C -- LNPSNL - IN - the length of the nodal point sets node list |
| 29 |
C -- LNPSDF - IN - the length of the node sets distribution factors list |
| 30 |
C -- NUMESS - IN - the number of side sets |
| 31 |
C -- LESSEL - IN - the length of the concatenated side sets element list |
| 32 |
C -- LESSNL - IN - the length of the concatenated side sets node list |
| 33 |
C -- LESSDF - IN - the length of the side set distribution factors list |
| 34 |
C -- QAINFO - IN - program information array |
| 35 |
C -- |
| 36 |
C Header info |
| 37 |
INTEGER NTXT |
| 38 |
REAL VERS |
| 39 |
CHARACTER*80 TITLE |
| 40 |
INTEGER NDIM, NUMNP, NUMEL, NELBLK |
| 41 |
C Node set info |
| 42 |
INTEGER NUMNPS, LNPSNL, LNPSDF |
| 43 |
C Side set info |
| 44 |
INTEGER NUMESS, LESSEL, LESSNL, LESSDF |
| 45 |
|
| 46 |
CHARACTER*(*) QAINFO(6) |
| 47 |
|
| 48 |
C ... Some codes are embedding carriage returns in title. |
| 49 |
C Strip them out... |
| 50 |
LTITLE = lenstr(title) |
| 51 |
do i=1, ltitle |
| 52 |
if (ichar(title(i:i)) .eq. 10) title(i:i) = ' ' |
| 53 |
end do |
| 54 |
|
| 55 |
WRITE (NTXT, 10030) '! Database Title', (QAINFO(I),I=1,3) |
| 56 |
WRITE (NTXT, '(A)') TITLE |
| 57 |
|
| 58 |
WRITE (NTXT, '(A)') '! Database initial variables' |
| 59 |
WRITE (NTXT, '(I10, F10.2, I10,5X, A)') NDIM, VERS,NAMLEN, |
| 60 |
& '! dimensions, version number, name length' |
| 61 |
WRITE (NTXT, 10010) NUMNP, NUMEL, NELBLK, |
| 62 |
& '! nodes, elements, element blocks' |
| 63 |
WRITE (NTXT, 10020) NUMNPS, NUMESS, |
| 64 |
& '! #node sets, #side sets' |
| 65 |
WRITE (NTXT, 10020) LNPSNL, LNPSDF, |
| 66 |
& '! len: node set list, dist fact length' |
| 67 |
WRITE (NTXT, 10010) LESSEL, LESSNL, LESSDF, |
| 68 |
& '! side sets len: element, node , dist fact' |
| 69 |
|
| 70 |
RETURN |
| 71 |
10010 FORMAT (3I10, 5X, A) |
| 72 |
10020 FORMAT (2I10, 15X, A) |
| 73 |
10030 FORMAT (A, 5X, 3A32) |
| 74 |
END |