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