| 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 |
C======================================================================= |
| 7 |
SUBROUTINE PRFRM (NOUT) |
| 8 |
C======================================================================= |
| 9 |
|
| 10 |
C --*** PRFRM *** (EXPLORE) Display Coordinate Frame information |
| 11 |
C -- |
| 12 |
C --Parameters: |
| 13 |
C -- NOUT - IN - the output file, <=0 for standard |
| 14 |
|
| 15 |
include 'exp_dbase.blk' |
| 16 |
include 'exodusII.inc' |
| 17 |
|
| 18 |
REAL RDUM |
| 19 |
character*1 cdum |
| 20 |
|
| 21 |
C ... Get count of coordinate frames in model... |
| 22 |
call exinq(ndb, EXNCF, ncf, rdum, cdum, ierr) |
| 23 |
|
| 24 |
call prfrm1(nout, ncf) |
| 25 |
end |
| 26 |
|
| 27 |
C======================================================================= |
| 28 |
subroutine prfrm1(nout, ncf) |
| 29 |
C======================================================================= |
| 30 |
include 'exp_dbase.blk' |
| 31 |
include 'exodusII.inc' |
| 32 |
|
| 33 |
integer cfids(ncf), tags(ncf) |
| 34 |
real coord(27) |
| 35 |
|
| 36 |
INTEGER GETPRC, PRTLEN |
| 37 |
CHARACTER*256 FMT1, FMT |
| 38 |
|
| 39 |
character*12 tag |
| 40 |
character*32 str32 |
| 41 |
|
| 42 |
PRTLEN = GETPRC() + 7 |
| 43 |
WRITE(FMT1,20) PRTLEN, PRTLEN-7 |
| 44 |
CALL SQZSTR(FMT1, LFMT) |
| 45 |
WRITE(FMT, 35) 'I12', FMT1(:LFMT), FMT1(:LFMT), FMT1(:LFMT) |
| 46 |
|
| 47 |
if (nout .gt. 0) then |
| 48 |
WRITE (nout, 10000) |
| 49 |
end if |
| 50 |
|
| 51 |
call exgfrm(ndb, ncf, cfids, coord, tags, ierr) |
| 52 |
|
| 53 |
CALL INTSTR (1, 0, NCF, STR32, LSTR) |
| 54 |
IF (NOUT .GT. 0) THEN |
| 55 |
WRITE (NOUT, 10010) STR32(:LSTR) |
| 56 |
ELSE |
| 57 |
WRITE (*, 10010) STR32(:LSTR) |
| 58 |
END IF |
| 59 |
|
| 60 |
do i=1, ncf |
| 61 |
icbeg = 9*(i-1)+1 |
| 62 |
icend = 9*i |
| 63 |
if (tags(i) .eq. EXCFREC) then |
| 64 |
tag = 'Rectangular' |
| 65 |
else if (tags(i) .eq. EXCFCYL) then |
| 66 |
tag = 'Cylindrical' |
| 67 |
else if (tags(i) .eq. EXCFSPH) then |
| 68 |
tag = 'Spherical ' |
| 69 |
end if |
| 70 |
|
| 71 |
IF (NOUT .GT. 0) THEN |
| 72 |
write (nout,FMT) cfids(i), tag, (coord(j),j=icbeg, icend) |
| 73 |
ELSE |
| 74 |
write (*,FMT) cfids(i), tag, (coord(j),j=icbeg, icend) |
| 75 |
END IF |
| 76 |
end do |
| 77 |
|
| 78 |
RETURN |
| 79 |
|
| 80 |
20 FORMAT('1PE',I2.2,'.',I2.2) |
| 81 |
|
| 82 |
35 FORMAT ('(/,'' Coordinate Frame '',',A, |
| 83 |
* ','': '',A,/,5x,''Origin: '',3(1x, ',A, |
| 84 |
* '),/,5x,''3rd Axis Point: '',3(1x, ',A, |
| 85 |
* '),/,5x,''1-3 Plane Point: '',3(1x, ',A,'))') |
| 86 |
|
| 87 |
10000 FORMAT (/, 1X, 'COORDINATE FRAMES') |
| 88 |
10010 FORMAT (' Number of Coordinate Frames = ', A) |
| 89 |
END |