Last change
on this file since 517 was
295,
checked in by lmdzadmin, 23 years ago
|
Tag version 0 qui marche en couple/force
LF
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
841 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 getin_dump |
---|
23 | c call histclo(2) |
---|
24 | c call histclo(3) |
---|
25 | c call histclo(4) |
---|
26 | c call histclo(5) |
---|
27 | write(*,*) 'out of histclo' |
---|
28 | write(*,*) 'Stopping in ', modname |
---|
29 | write(*,*) 'Reason = ',message |
---|
30 | if (ierr .eq. 0) then |
---|
31 | write(*,*) 'Everything is cool' |
---|
32 | else |
---|
33 | write(*,*) 'Houston, we have a problem ', ierr |
---|
34 | endif |
---|
35 | STOP |
---|
36 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.