- Timestamp:
- Aug 12, 2014, 11:17:07 AM (10 years ago)
- Location:
- branches/LMDZ_WRFmeas_develop/WRFV3/lmdz
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LMDZ_WRFmeas_develop/WRFV3/lmdz/abort_gcm.F90
r168 r169 48 48 49 49 ! L. Fita, LMD. August 2014 50 SUBROUTINE abort_gcm_point(modname, message, ierr, point )50 SUBROUTINE abort_gcm_point(modname, message, ierr, point, val, i1fc, thres) 51 51 52 52 #ifdef CPP_IOIPSL … … 66 66 !C ierr = severity of situation ( = 0 normal ) 67 67 !C point = 1D point where the error ocurred 68 !C val = wrong value 69 !C if1c = condition as 1 character 70 !C thres = threshold value 68 71 69 72 character(len=*) modname … … 71 74 character(len=*) message 72 75 INTEGER, INTENT(IN) :: point 76 REAL, INTENT(IN) :: val, thres 77 CHARACTER(LEN=1), INTENT(IN) :: if1c 73 78 74 79 write(lunout,*) 'in abort_gcm' … … 83 88 !c call histclo(5) 84 89 write(lunout,*) 'Stopping in ', modname 85 write(lunout,*) 'Stopping at point ', point 90 write(lunout,*) 'Stopping at point ', point,' wrong: ',val, if1c, thres 86 91 write(lunout,*) 'Reason = ',message 87 92 if (ierr .eq. 0) then … … 95 100 96 101 ! L. Fita, LMD. August 2014 97 SUBROUTINE abort_gcm_2Dpoint(modname, message, ierr, p oint)102 SUBROUTINE abort_gcm_2Dpoint(modname, message, ierr, pk, pl, val, i1fc, thres) 98 103 99 104 #ifdef CPP_IOIPSL … … 112 117 !C message = stuff to print 113 118 !C ierr = severity of situation ( = 0 normal ) 114 !C point = 2D point where the error ocurred 119 !C pk, pl = 2D point where the error ocurred (klev, klon) 120 !C val = wrong value 121 !C if1c = condition as 1 character 122 !C thres = threshold value 115 123 116 124 character(len=*) modname 117 125 integer ierr 118 126 character(len=*) message 119 INTEGER, DIMENSION(2), INTENT(IN) :: point 127 INTEGER, INTENT(IN) :: pk, pl 128 REAL, INTENT(IN) :: val, thres 129 CHARACTER(LEN=1), INTENT(IN) :: if1c 120 130 121 131 write(lunout,*) 'in abort_gcm' … … 130 140 !c call histclo(5) 131 141 write(lunout,*) 'Stopping in ', modname 132 write(lunout,*) 'Stopping at point (klon, klev)', point 142 write(lunout,*) 'Stopping at point (klon, klev):', pk, ',', pl,' wrong: ',val, & 143 if1c, thres 133 144 write(lunout,*) 'Reason = ',message 134 145 if (ierr .eq. 0) then -
branches/LMDZ_WRFmeas_develop/WRFV3/lmdz/thermcellV0_main.F90
r1 r169 607 607 zcon2(ig)=zlay(ig,nlay)-(pcon(ig)-pplay(ig,nlay))/(RG*rho(ig,nlay))/100. 608 608 abort_message = 'thermcellV0_main: les thermiques vont trop haut ' 609 CALL abort_gcm (modname,abort_message,1) 609 ! L. Fita, LMD August 2014. Replacing by something more informative 610 ! CALL abort_gcm (modname,abort_message,1) 611 CALL abort_gcm_point (modname,abort_message,1,ig,pcon(ig),'<', & 612 pplay(ig,nlay)) 610 613 endif 611 614 enddo … … 900 903 print*,'wmax_sec',wmax_sec(ig) 901 904 abort_message = 'zdenom<1.e-14' 902 CALL abort_gcm (modname,abort_message,1) 905 ! L. Fita, LMD August 2014. Changing it for something more informative 906 ! CALL abort_gcm (modname,abort_message,1) 907 CALL abort_gcm_point (modname,abort_message,1,ig,zdenom,'<',1.e-14) 908 903 909 endif 904 910 if ((zmax_sec(ig).gt.1.e-10).and.(iflag_thermals_ed.eq.0)) then -
branches/LMDZ_WRFmeas_develop/WRFV3/lmdz/thermcell_dq.F90
r166 r169 54 54 print*,'entr dt > m ',entr(ig,k)*ptimestep,masse(ig,k) 55 55 abort_message = '' 56 PRINT *,' Lluis aborting at :', ig, k 57 CALL abort_gcm (modname,abort_message,1) 56 ! L. Fita, LMD. August 2014. Changing for something more informative 57 ! CALL abort_gcm (modname,abort_message,1) 58 CALL abort_gcm_2Dpoint (modname,abort_message,1,ig,k,entr(ig,k),'>',zzm) 58 59 endif 59 60 enddo … … 189 190 print*,'entr dt > m ',entr(ig,k)*ptimestep,masse(ig,k) 190 191 abort_message = '' 191 PRINT *,' Lluis aborting at :', ig, k 192 CALL abort_gcm (modname,abort_message,1) 192 ! L. Fita, LMD August 2014. Changing for something more informative 193 ! CALL abort_gcm (modname,abort_message,1) 194 CALL abort_gcm_2Dpoint (modname,abort_message,1,ig,k,entr(ig,k),'>', & 195 zzm) 193 196 endif 194 197 enddo -
branches/LMDZ_WRFmeas_develop/WRFV3/lmdz/thermcell_main.F90
r166 r169 721 721 if (pcon(ig).le.pplay(ig,nlay)) then 722 722 zcon2(ig)=zlay(ig,nlay)-(pcon(ig)-pplay(ig,nlay))/(RG*rho(ig,nlay))/100. 723 PRINT *,' Lluis aborting at :', ig 723 abort_message = 'thermcellV0_main: les thermiques vont trop haut ' 724 ! L. Fita, LMD. August 2014. Including something more informative 725 CALL abort_gcm_point (modname,abort_message,1,ig,pcon(ig),'<', & 726 pplay(ig,nlay)) 724 727 ierr=1 725 728 endif
Note: See TracChangeset
for help on using the changeset viewer.