source: LMDZ.3.3/branches/rel-LF/libf/dyn3d/abort_gcm.F @ 545

Last change on this file since 545 was 295, checked in by lmdzadmin, 23 years ago

Tag version 0 qui marche en couple/force
LF

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