Last change
on this file since 1219 was
1219,
checked in by jghattas, 15 years ago
|
Uniquement un process devrait faire l'appel a getin_dump sinon on
risque d'avoir des conflit de fermeture du meme fichier.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1022 bytes
|
Rev | Line | |
---|
[630] | 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 |
---|
[1219] | 11 | USE parallel |
---|
[630] | 12 | #include "iniprint.h" |
---|
| 13 | |
---|
| 14 | C |
---|
| 15 | C Stops the simulation cleanly, closing files and printing various |
---|
| 16 | C comments |
---|
| 17 | C |
---|
| 18 | C Input: modname = name of calling program |
---|
| 19 | C message = stuff to print |
---|
| 20 | C ierr = severity of situation ( = 0 normal ) |
---|
| 21 | |
---|
[995] | 22 | character (len=*) :: modname |
---|
[630] | 23 | integer ierr |
---|
[995] | 24 | character (len=*) :: message |
---|
[630] | 25 | |
---|
| 26 | write(lunout,*) 'in abort_gcm' |
---|
| 27 | #ifdef CPP_IOIPSL |
---|
[985] | 28 | c$OMP MASTER |
---|
[630] | 29 | call histclo |
---|
| 30 | call restclo |
---|
[1219] | 31 | if (MPI_rank .eq. 0) then |
---|
| 32 | call getin_dump |
---|
| 33 | endif |
---|
[985] | 34 | c$OMP END MASTER |
---|
[630] | 35 | #endif |
---|
| 36 | c call histclo(2) |
---|
| 37 | c call histclo(3) |
---|
| 38 | c call histclo(4) |
---|
| 39 | c call histclo(5) |
---|
| 40 | write(lunout,*) 'Stopping in ', modname |
---|
| 41 | write(lunout,*) 'Reason = ',message |
---|
| 42 | if (ierr .eq. 0) then |
---|
| 43 | write(lunout,*) 'Everything is cool' |
---|
| 44 | else |
---|
| 45 | write(lunout,*) 'Houston, we have a problem ', ierr |
---|
[985] | 46 | STOP |
---|
[630] | 47 | endif |
---|
| 48 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.