Last change
on this file since 5300 was
5282,
checked in by abarral, 4 days ago
|
Turn iniprint.h clesphys.h into modules
Remove unused description.h
|
-
Property copyright set to
Name of program: LMDZ Creation date: 1984 Version: LMDZ5 License: CeCILL version 2 Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539 See the license file in the root directory
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
988 bytes
|
Rev | Line | |
---|
[524] | 1 | ! |
---|
[1279] | 2 | ! $Id: abort_gcm.F90 5282 2024-10-28 12:11:48Z abarral $ |
---|
[524] | 3 | ! |
---|
[5246] | 4 | ! |
---|
| 5 | ! |
---|
| 6 | SUBROUTINE abort_gcm(modname, message, ierr) |
---|
| 7 | |
---|
[5282] | 8 | USE iniprint_mod_h |
---|
| 9 | USE IOIPSL |
---|
[5246] | 10 | !! ug Pour les sorties XIOS |
---|
| 11 | USE wxios |
---|
[1825] | 12 | |
---|
[524] | 13 | |
---|
[5246] | 14 | ! |
---|
| 15 | ! Stops the simulation cleanly, closing files and printing various |
---|
| 16 | ! comments |
---|
| 17 | ! |
---|
| 18 | ! Input: modname = name of calling program |
---|
| 19 | ! message = stuff to print |
---|
| 20 | ! ierr = severity of situation ( = 0 normal ) |
---|
[524] | 21 | |
---|
[5246] | 22 | character(len=*), intent(in):: modname |
---|
| 23 | integer, intent(in):: ierr |
---|
| 24 | character(len=*), intent(in):: message |
---|
[1825] | 25 | |
---|
[5246] | 26 | write(lunout,*) 'in abort_gcm' |
---|
[1825] | 27 | |
---|
[5246] | 28 | IF (using_xios) THEN |
---|
| 29 | !Fermeture propre de XIOS |
---|
| 30 | CALL wxios_close() |
---|
| 31 | ENDIF |
---|
| 32 | |
---|
| 33 | call histclo |
---|
| 34 | call restclo |
---|
| 35 | call getin_dump |
---|
| 36 | ! call histclo(2) |
---|
| 37 | ! call histclo(3) |
---|
| 38 | ! call histclo(4) |
---|
| 39 | ! 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 | stop |
---|
| 45 | else |
---|
| 46 | write(lunout,*) 'Houston, we have a problem, ierr = ', ierr |
---|
| 47 | stop 1 |
---|
| 48 | endif |
---|
| 49 | END SUBROUTINE abort_gcm |
---|
Note: See
TracBrowser
for help on using the repository browser.