source: LMDZ4/trunk/libf/dyn3dpar/abort_gcm.F @ 1147

Last change on this file since 1147 was 1147, checked in by Laurent Fairhead, 15 years ago

Inclusion des routines ioipsl

  • ioconf_startdate positionnant la date de départ de la simulation pour IOIPSL
  • getin_dump pour avoir les valeurs des paramètres effectivement utilisées par le programme

LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 956 bytes
Line 
1!
2! $Header$
3!
4c
5c
6      SUBROUTINE abort_gcm(modname, message, ierr)
7     
8#ifdef CPP_IOIPSL
9      USE IOIPSL
10#endif
11#include "iniprint.h"
12 
13C
14C Stops the simulation cleanly, closing files and printing various
15C comments
16C
17C  Input: modname = name of calling program
18C         message = stuff to print
19C         ierr    = severity of situation ( = 0 normal )
20
21      character (len=*) :: modname
22      integer ierr
23      character (len=*) :: message
24
25      write(lunout,*) 'in abort_gcm'
26#ifdef CPP_IOIPSL
27c$OMP MASTER
28      call histclo
29      call restclo
30c$OMP END MASTER
31#endif
32      call getin_dump
33c     call histclo(2)
34c     call histclo(3)
35c     call histclo(4)
36c     call histclo(5)
37      write(lunout,*) 'Stopping in ', modname
38      write(lunout,*) 'Reason = ',message
39      if (ierr .eq. 0) then
40        write(lunout,*) 'Everything is cool'
41      else
42        write(lunout,*) 'Houston, we have a problem ', ierr
43      STOP
44      endif
45      END
Note: See TracBrowser for help on using the repository browser.