Changeset 4065 for trunk/LMDZ.COMMON/libf/evolution/stoppage.F90
- Timestamp:
- Feb 12, 2026, 9:09:12 AM (2 weeks ago)
- File:
-
- 1 moved
-
trunk/LMDZ.COMMON/libf/evolution/stoppage.F90 (moved) (moved from trunk/LMDZ.COMMON/libf/evolution/stop_pem.F90) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/stoppage.F90
r4064 r4065 1 MODULE stop _pem1 MODULE stoppage 2 2 !----------------------------------------------------------------------- 3 3 ! NAME 4 ! stop _pem4 ! stoppage 5 5 ! 6 6 ! DESCRIPTION … … 14 14 !----------------------------------------------------------------------- 15 15 16 ! DEPENDENCIES 17 ! ------------ 18 use numerics, only: di 19 16 20 ! DECLARATION 17 21 ! ----------- … … 22 26 23 27 !======================================================================= 24 SUBROUTINE stop_clean( modname,message,ierr)28 SUBROUTINE stop_clean(fname,fline,message,ierr) 25 29 !----------------------------------------------------------------------- 26 30 ! NAME … … 40 44 ! ------------ 41 45 #ifdef CPP_IOIPSL 42 use IOIPSL46 use IOIPSL 43 47 #else 44 ! If not using IOIPSL, we still need to use (a local version of) getin_dump45 use ioipsl_getincom48 ! If not using IOIPSL, we still need to use (a local version of) getin_dump 49 use ioipsl_getincom 46 50 #endif 47 51 #ifdef CPP_XIOS 48 use wxios ! For XIOS outputs52 use wxios ! For XIOS outputs 49 53 #endif 50 54 … … 57 61 ! ARGUMENTS 58 62 ! --------- 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 63 character(*), intent(in) :: fname ! Name of file 64 integer(di), intent(in) :: fline ! Line number of file 65 integer(di), intent(in) :: ierr ! Severity of situation (= 0 normal) 66 character(*), intent(in) :: message ! Message to print 62 67 63 68 ! CODE … … 73 78 74 79 call getin_dump() 75 write(lunout, *) 'stop_pem: stopping in ', modname76 write(lunout, *) 'Reason = ',message80 write(lunout,'(a,i5,a)') ' Stopping in "'//fname//'" at line ',fline,'.' 81 write(lunout,'(a)') ' Reason: '//message 77 82 if (ierr == 0) then 78 write(lunout, *) 'Everything is cool!'79 error stop 83 write(lunout,'(a)') ' Everything is cool!' 84 error stop ierr 80 85 else 81 write(lunout, *) 'Houston, we have a problem! ierr =',ierr82 error stop 183 end if86 write(lunout,'(a,i4)') ' Houston, we have a problem! Error code = ',ierr 87 error stop ierr 88 end if 84 89 85 90 END SUBROUTINE stop_clean 86 91 !======================================================================= 87 92 88 END MODULE stop _pem93 END MODULE stoppage
Note: See TracChangeset
for help on using the changeset viewer.
