| 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 CPYRGT (NOUT, YEAR) |
| 9 |
C======================================================================= |
| 10 |
C --*** CPYRGT *** (ETCLIB) Print copyright notice |
| 11 |
C -- Written by Greg Sjaardema - revised 5-13-92 - |
| 12 |
C -- |
| 13 |
C --CPYRGT prints the copyright notice at the start of any program. |
| 14 |
C --The copyright notice is printed to the standard output device or |
| 15 |
C --an output file. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- NOUT - IN - the output file number; 0 if standard output device |
| 19 |
C -- YEAR - IN - the year of the copyright |
| 20 |
|
| 21 |
C --Routines Called: |
| 22 |
C -- LENSTR - (STRLIB) Find string length |
| 23 |
|
| 24 |
PARAMETER (NLIN = 3) |
| 25 |
INTEGER NOUT |
| 26 |
CHARACTER*(*) YEAR |
| 27 |
|
| 28 |
CHARACTER*80 BANR |
| 29 |
CHARACTER*40 BLANK |
| 30 |
CHARACTER*60 TEXT(NLIN) |
| 31 |
SAVE BLANK |
| 32 |
|
| 33 |
DATA BLANK / ' ' / |
| 34 |
DATA TEXT / |
| 35 |
* 'Under the terms of Contract', |
| 36 |
* 'DE-NA0003525 with NTESS, the' , |
| 37 |
* 'U.S. Government retains certain rights in this software.'/ |
| 38 |
|
| 39 |
NCEN(LEN) = MAX (1, (80 - LEN + 1) / 2) |
| 40 |
|
| 41 |
write (banr, 100) year(:lenstr(year)) |
| 42 |
100 format (' Copyright ', a, ' NTESS') |
| 43 |
CALL SQZSTR (BANR, LBANR) |
| 44 |
IF (NOUT .LE. 0) THEN |
| 45 |
WRITE (*, 10000) BLANK(:NCEN(LBANR+8)), |
| 46 |
& '+++ ', BANR(:LBANR), ' +++' |
| 47 |
ELSE |
| 48 |
WRITE (NOUT, 10000) BLANK(:NCEN(LBANR+8)), |
| 49 |
& '+++ ', BANR(:LBANR), ' +++' |
| 50 |
END IF |
| 51 |
do 120 i=1, nlin |
| 52 |
write (banr, 110) text(i)(:lenstr(text(i))) |
| 53 |
110 format (A) |
| 54 |
CALL SQZSTR (BANR, LBANR) |
| 55 |
IF (NOUT .LE. 0) THEN |
| 56 |
WRITE (*, 10000) BLANK(:NCEN(LBANR+8)), |
| 57 |
& '+++ ', BANR(:LBANR), ' +++' |
| 58 |
ELSE |
| 59 |
WRITE (NOUT, 10000) BLANK(:NCEN(LBANR+8)), |
| 60 |
& '+++ ', BANR(:LBANR), ' +++' |
| 61 |
END IF |
| 62 |
120 continue |
| 63 |
|
| 64 |
IF (NOUT .LE. 0) THEN |
| 65 |
WRITE (*, *) |
| 66 |
ELSE |
| 67 |
WRITE (NOUT, *) |
| 68 |
END IF |
| 69 |
10000 format (8A) |
| 70 |
RETURN |
| 71 |
END |