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

Last change on this file since 283 was 206, checked in by lmdzadmin, 24 years ago

petit detail
LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 819 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 histclo(2)
23c     call histclo(3)
24c     call histclo(4)
25c     call histclo(5)
26      write(*,*) 'out of histclo'
27      write(*,*) 'Stopping in ', modname
28      write(*,*) 'Reason = ',message
29      if (ierr .eq. 0) then
30        write(*,*) 'Everything is cool'
31      else
32        write(*,*) 'Houston, we have a problem ', ierr
33      endif
34      STOP
35      END
Note: See TracBrowser for help on using the repository browser.