Last change
on this file since 1941 was
1907,
checked in by lguez, 11 years ago
|
Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:
$ svn propget copyright libf/phylmd/physiq.F90
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
Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.
|
-
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:
1.3 KB
|
Rev | Line | |
---|
[630] | 1 | ! |
---|
[1279] | 2 | ! $Id: abort_gcm.F 1907 2013-11-26 13:10:46Z jghattas $ |
---|
[630] | 3 | ! |
---|
| 4 | c |
---|
| 5 | c |
---|
| 6 | SUBROUTINE abort_gcm(modname, message, ierr) |
---|
| 7 | |
---|
| 8 | #ifdef CPP_IOIPSL |
---|
| 9 | USE IOIPSL |
---|
[1279] | 10 | #else |
---|
| 11 | ! if not using IOIPSL, we still need to use (a local version of) getin_dump |
---|
| 12 | USE ioipsl_getincom |
---|
[630] | 13 | #endif |
---|
[1823] | 14 | USE parallel_lmdz |
---|
[1852] | 15 | |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | |
---|
[630] | 19 | #include "iniprint.h" |
---|
| 20 | |
---|
| 21 | C |
---|
| 22 | C Stops the simulation cleanly, closing files and printing various |
---|
| 23 | C comments |
---|
| 24 | C |
---|
| 25 | C Input: modname = name of calling program |
---|
| 26 | C message = stuff to print |
---|
| 27 | C ierr = severity of situation ( = 0 normal ) |
---|
| 28 | |
---|
[1425] | 29 | character(len=*) modname |
---|
[1747] | 30 | integer ierr, ierror_mpi |
---|
[1425] | 31 | character(len=*) message |
---|
[630] | 32 | |
---|
| 33 | write(lunout,*) 'in abort_gcm' |
---|
| 34 | #ifdef CPP_IOIPSL |
---|
[985] | 35 | c$OMP MASTER |
---|
[630] | 36 | call histclo |
---|
| 37 | call restclo |
---|
[1279] | 38 | if (MPI_rank .eq. 0) then |
---|
| 39 | call getin_dump |
---|
| 40 | endif |
---|
[985] | 41 | c$OMP END MASTER |
---|
[630] | 42 | #endif |
---|
[1852] | 43 | |
---|
| 44 | |
---|
| 45 | |
---|
[630] | 46 | c call histclo(2) |
---|
| 47 | c call histclo(3) |
---|
| 48 | c call histclo(4) |
---|
| 49 | c call histclo(5) |
---|
| 50 | write(lunout,*) 'Stopping in ', modname |
---|
| 51 | write(lunout,*) 'Reason = ',message |
---|
| 52 | if (ierr .eq. 0) then |
---|
| 53 | write(lunout,*) 'Everything is cool' |
---|
| 54 | else |
---|
| 55 | write(lunout,*) 'Houston, we have a problem ', ierr |
---|
[1747] | 56 | #ifdef CPP_MPI |
---|
[1748] | 57 | C$OMP CRITICAL (MPI_ABORT_GCM) |
---|
[1747] | 58 | call MPI_ABORT(COMM_LMDZ, 1, ierror_mpi) |
---|
[1748] | 59 | C$OMP END CRITICAL (MPI_ABORT_GCM) |
---|
[1747] | 60 | #else |
---|
[1425] | 61 | stop 1 |
---|
[1747] | 62 | #endif |
---|
[630] | 63 | endif |
---|
| 64 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.