source: LMDZ6/branches/Amaury_dev/libf/dyn3d/abort_gcm.F90 @ 5112

Last change on this file since 5112 was 5103, checked in by abarral, 4 months ago

Handle CPP_INLANDSIS in lmdz_cppkeys_wrapper.F90
Remove obsolete key wrgrads_thermcell, _ADV_HALO, _ADV_HALLO, isminmax
Remove redundant uses of CPPKEY_INCA (thanks acozic)
Remove obsolete misc/write_field.F90
Remove unused ioipsl_* wrappers
Remove calls to WriteField_u with wrong signature
Convert .F -> .[fF]90
(lint) uppercase fortran operators
[note: 1d and iso still broken - working on it]

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 922 bytes
Line 
1! $Id: abort_gcm.F90 5103 2024-07-23 13:29:36Z abarral $
2
3!
4!
5SUBROUTINE abort_gcm(modname, message, ierr)
6
7  USE IOIPSL
8  !! ug Pour les sorties XIOS
9  USE wxios
10
11  include "iniprint.h"
12
13  !
14  ! Stops the simulation cleanly, closing files and printing various
15  ! comments
16  !
17  !  Input: modname = name of calling program
18  !     message = stuff to print
19  !     ierr    = severity of situation ( = 0 normal )
20
21  character(len = *), intent(in) :: modname
22  integer, intent(in) :: ierr
23  character(len = *), intent(in) :: message
24
25  write(lunout, *) 'in abort_gcm'
26
27  IF (using_xios) THEN
28    !Fermeture propre de XIOS
29    CALL wxios_close()
30  ENDIF
31
32  CALL histclo
33  CALL restclo
34  CALL getin_dump
35  write(lunout, *) 'Stopping in ', modname
36  write(lunout, *) 'Reason = ', message
37  if (ierr == 0) then
38    write(lunout, *) 'Everything is cool'
39    stop
40  else
41    write(lunout, *) 'Houston, we have a problem, ierr = ', ierr
42    stop 1
43  endif
44END SUBROUTINE abort_gcm
Note: See TracBrowser for help on using the repository browser.