Last change
on this file since 1632 was
1632,
checked in by Laurent Fairhead, 12 years ago
|
Import initial du répertoire dyn3dmem
Attention! ceci n'est qu'une version préliminaire du code "basse mémoire":
le code contenu dans ce répertoire est basé sur la r1320 et a donc besoin
d'être mis à jour par rapport à la dynamique parallèle d'aujourd'hui.
Ce code est toutefois mis à disposition pour circonvenir à des problèmes
de mémoire que certaines configurations du modèle pourraient rencontrer.
Dans l'état, il compile et tourne sur vargas et au CCRT
Initial import of dyn3dmem
Warning! this is just a preliminary version of the memory light code:
it is based on r1320 of the code and thus needs to be updated before
it can replace the present dyn3dpar code. It is nevertheless put at your
disposal to circumvent some memory problems some LMDZ configurations may
encounter. In its present state, it will compile and run on vargas and CCRT
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1632] | 1 | ! |
---|
| 2 | ! $Id: abort_gcm.F 1279 2009-12-10 09:02:56Z fairhead $ |
---|
| 3 | ! |
---|
| 4 | c |
---|
| 5 | c |
---|
| 6 | SUBROUTINE abort_gcm(modname, message, ierr) |
---|
| 7 | |
---|
| 8 | #ifdef CPP_IOIPSL |
---|
| 9 | USE IOIPSL |
---|
| 10 | #else |
---|
| 11 | ! if not using IOIPSL, we still need to use (a local version of) getin_dump |
---|
| 12 | USE ioipsl_getincom |
---|
| 13 | #endif |
---|
| 14 | USE parallel |
---|
| 15 | #include "iniprint.h" |
---|
| 16 | |
---|
| 17 | C |
---|
| 18 | C Stops the simulation cleanly, closing files and printing various |
---|
| 19 | C comments |
---|
| 20 | C |
---|
| 21 | C Input: modname = name of calling program |
---|
| 22 | C message = stuff to print |
---|
| 23 | C ierr = severity of situation ( = 0 normal ) |
---|
| 24 | |
---|
| 25 | character (len=*) :: modname |
---|
| 26 | integer ierr |
---|
| 27 | character (len=*) :: message |
---|
| 28 | |
---|
| 29 | write(lunout,*) 'in abort_gcm' |
---|
| 30 | #ifdef CPP_IOIPSL |
---|
| 31 | c$OMP MASTER |
---|
| 32 | call histclo |
---|
| 33 | call restclo |
---|
| 34 | if (MPI_rank .eq. 0) then |
---|
| 35 | call getin_dump |
---|
| 36 | endif |
---|
| 37 | c$OMP END MASTER |
---|
| 38 | #endif |
---|
| 39 | c call histclo(2) |
---|
| 40 | c call histclo(3) |
---|
| 41 | c call histclo(4) |
---|
| 42 | c call histclo(5) |
---|
| 43 | write(lunout,*) 'Stopping in ', modname |
---|
| 44 | write(lunout,*) 'Reason = ',message |
---|
| 45 | if (ierr .eq. 0) then |
---|
| 46 | write(lunout,*) 'Everything is cool' |
---|
| 47 | else |
---|
| 48 | write(lunout,*) 'Houston, we have a problem ', ierr |
---|
| 49 | STOP |
---|
| 50 | endif |
---|
| 51 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.