Changeset 3991 for trunk/LMDZ.COMMON/libf/evolution/stop_pem.F90
- Timestamp:
- Dec 16, 2025, 4:39:24 PM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/LMDZ.COMMON/libf/evolution/stop_pem.F90 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/stop_pem.F90
r3989 r3991 1 1 MODULE stop_pem 2 !----------------------------------------------------------------------- 3 ! NAME 4 ! stop_pem 5 ! 6 ! DESCRIPTION 7 ! Clean stopping utilities for PEM: close outputs and report reason. 8 ! 9 ! AUTHORS & DATE 10 ! JB Clement, 2025 11 ! 12 ! NOTES 13 ! 14 !----------------------------------------------------------------------- 2 15 16 ! DECLARATION 17 ! ----------- 3 18 implicit none 4 19 5 !=======================================================================6 20 contains 7 ! =======================================================================21 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8 22 9 23 !======================================================================= 10 24 SUBROUTINE stop_clean(modname,message,ierr) 11 ! Stop the simulation cleanly, closing files and printing various comments 12 ! Inputs: modname = name of calling program 13 ! message = stuff to print 14 ! ierr = severity of situation (= 0 normal) 25 !----------------------------------------------------------------------- 26 ! NAME 27 ! stop_clean 28 ! 29 ! DESCRIPTION 30 ! Stop simulation cleanly, closing files and printing diagnostics. 31 ! 32 ! AUTHORS & DATE 33 ! JB Clement, 2025 34 ! 35 ! NOTES 36 ! Taken from Mars PCM. 37 !----------------------------------------------------------------------- 15 38 39 ! DEPENDENCIES 40 ! ------------ 16 41 #ifdef CPP_IOIPSL 17 42 use IOIPSL … … 20 45 use ioipsl_getincom 21 46 #endif 22 23 47 #ifdef CPP_XIOS 24 48 use wxios ! For XIOS outputs 25 49 #endif 26 50 51 ! DECLARATION 52 ! ----------- 27 53 implicit none 28 54 29 55 #include "iniprint.h" 30 56 31 ! A rguments32 ! ----------33 character(*), intent(in) :: modname 34 integer, intent(in) :: ierr 35 character(*), intent(in) :: message 57 ! ARGUMENTS 58 ! --------- 59 character(*), intent(in) :: modname ! name of calling program 60 integer, intent(in) :: ierr ! severity of situation (= 0 normal) 61 character(*), intent(in) :: message ! stuff to print 36 62 37 ! C ode38 ! -----63 ! CODE 64 ! ---- 39 65 #ifdef CPP_XIOS 40 66 CALL wxios_close() ! Closing XIOS properly
Note: See TracChangeset
for help on using the changeset viewer.
