Last change
on this file since 703 was
524,
checked in by lmdzadmin, 21 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
910 bytes
|
Rev | Line | |
---|
[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | c |
---|
| 5 | c |
---|
| 6 | SUBROUTINE abort_gcm(modname, message, ierr) |
---|
| 7 | |
---|
| 8 | #ifdef CPP_IOIPSL |
---|
| 9 | USE IOIPSL |
---|
| 10 | #endif |
---|
| 11 | #include "iniprint.h" |
---|
| 12 | |
---|
| 13 | C |
---|
| 14 | C Stops the simulation cleanly, closing files and printing various |
---|
| 15 | C comments |
---|
| 16 | C |
---|
| 17 | C Input: modname = name of calling program |
---|
| 18 | C message = stuff to print |
---|
| 19 | C ierr = severity of situation ( = 0 normal ) |
---|
| 20 | |
---|
| 21 | character*20 modname |
---|
| 22 | integer ierr |
---|
| 23 | character*80 message |
---|
| 24 | |
---|
| 25 | write(lunout,*) 'in abort_gcm' |
---|
| 26 | #ifdef CPP_IOIPSL |
---|
| 27 | call histclo |
---|
| 28 | call restclo |
---|
| 29 | #endif |
---|
| 30 | c call getin_dump |
---|
| 31 | c call histclo(2) |
---|
| 32 | c call histclo(3) |
---|
| 33 | c call histclo(4) |
---|
| 34 | c call histclo(5) |
---|
| 35 | write(lunout,*) 'Stopping in ', modname |
---|
| 36 | write(lunout,*) 'Reason = ',message |
---|
| 37 | if (ierr .eq. 0) then |
---|
| 38 | write(lunout,*) 'Everything is cool' |
---|
| 39 | else |
---|
| 40 | write(lunout,*) 'Houston, we have a problem ', ierr |
---|
| 41 | endif |
---|
| 42 | STOP |
---|
| 43 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.