source: LMDZ4/trunk/libf/dyn3d/abort_gcm.F @ 1364

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

Merged LMDZ4-dev branch changes r1241:1278 into the trunk
Running trunk and LMDZ4-dev in LMDZOR configuration on local
machine (sequential) and SX8 (4-proc) yields identical results
(restart and restartphy are identical binarily)
Log history from r1241 to r1278 is available by switching to
source:LMDZ4/branches/LMDZ4-dev-20091210

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
RevLine 
[524]1!
[1279]2! $Id: abort_gcm.F 1279 2009-12-10 09:02:56Z acozic $
[524]3!
4c
5c
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
[524]13#endif
14#include "iniprint.h"
15 
16C
17C Stops the simulation cleanly, closing files and printing various
18C comments
19C
20C  Input: modname = name of calling program
21C         message = stuff to print
22C         ierr    = severity of situation ( = 0 normal )
23
[1107]24      character(len=*) modname
[524]25      integer ierr
[1107]26      character(len=*) message
[524]27
[1004]28!      write(lunout,*) 'in abort_gcm'
29      write(6,*) 'in abort_gcm'
[524]30#ifdef CPP_IOIPSL
31      call histclo
32      call restclo
33#endif
[1147]34      call getin_dump
[524]35c     call histclo(2)
36c     call histclo(3)
37c     call histclo(4)
38c     call histclo(5)
[1004]39c     write(lunout,*) 'Stopping in ', modname
40c     write(lunout,*) 'Reason = ',message
41c     if (ierr .eq. 0) then
42c       write(lunout,*) 'Everything is cool'
43c     else
44c       write(lunout,*) 'Houston, we have a problem ', ierr
45c     endif
46      write(6,*) 'Stopping in ', modname
47      write(6,*) 'Reason = ',message
[524]48      if (ierr .eq. 0) then
[1004]49        write(6,*) 'Everything is cool'
[524]50      else
[1004]51        write(6,*) 'Houston, we have a problem ', ierr
[524]52      endif
53      STOP
54      END
Note: See TracBrowser for help on using the repository browser.