- Timestamp:
- 2019-12-11T12:02:38+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/src/OCE/stpctl.F90
r11143 r12178 66 66 INTEGER, DIMENSION(3) :: iu, is1, is2 ! min/max loc indices 67 67 REAL(wp) :: zzz ! local real 68 REAL(wp), DIMENSION( 10) :: zmax69 LOGICAL :: ll_wrtstp, ll_colruns, ll_wrtruns , ll_isnan68 REAL(wp), DIMENSION(9) :: zmax 69 LOGICAL :: ll_wrtstp, ll_colruns, ll_wrtruns 70 70 CHARACTER(len=20) :: clname 71 71 !!---------------------------------------------------------------------- … … 96 96 IF( ln_zad_Aimp ) THEN 97 97 istatus = NF90_DEF_VAR( idrun, 'abs_wi_max', NF90_DOUBLE, (/ idtime /), idw1 ) 98 istatus = NF90_DEF_VAR( idrun, 'C u_max', NF90_DOUBLE, (/ idtime /), idc1 )98 istatus = NF90_DEF_VAR( idrun, 'Cf_max', NF90_DOUBLE, (/ idtime /), idc1 ) 99 99 ENDIF 100 100 istatus = NF90_ENDDEF(idrun) … … 109 109 ENDIF 110 110 ! 111 ll_isnan = ANY(ISNAN(tsn)) .OR. ANY(ISNAN(un))112 IF (ll_isnan) nstop = nstop + 1113 111 ! !== test of extrema ==! 114 112 IF( ll_wd ) THEN … … 125 123 IF( ln_zad_Aimp ) THEN 126 124 zmax(8) = MAXVAL( ABS( wi(:,:,:) ) , mask = wmask(:,:,:) == 1._wp ) ! implicit vertical vel. max 127 zmax(9) = MAXVAL( Cu_adv(:,:,:) , mask = tmask(:,:,:) == 1._wp ) ! cell Courant no. max 128 ENDIF 129 IF (ll_isnan) THEN 130 zmax(10) = 1._wp ! stop indicator 131 ELSE 132 zmax(10) = 0._wp 125 zmax(9) = MAXVAL( Cu_adv(:,:,:) , mask = tmask(:,:,:) == 1._wp ) ! partitioning coeff. max 133 126 ENDIF 134 127 ! … … 154 147 END IF 155 148 ! !== error handling ==! 156 IF( ( (ln_ctl .OR. sn_cfctl%l_runstat).OR. lsomeoce ) .AND. ( & ! have use mpp_max (because ln_ctl=.T.) or contains some ocean points149 IF( ( ln_ctl .OR. lsomeoce ) .AND. ( & ! have use mpp_max (because ln_ctl=.T.) or contains some ocean points 157 150 & zmax(1) > 20._wp .OR. & ! too large sea surface height ( > 20 m ) 158 151 & zmax(2) > 10._wp .OR. & ! too large velocity ( > 10 m/s) … … 160 153 & zmax(4) >= 100._wp .OR. & ! too large sea surface salinity ( > 100 ) 161 154 & zmax(4) < 0._wp .OR. & ! too large sea surface salinity (keep this line for sea-ice) 162 & zmax(10) > 0._wp ) ) THEN ! NaN encounter in the tests 163 ! & ISNAN( zmax(1) + zmax(2) + zmax(3) ) ) ) THEN ! NaN encounter in the tests 164 IF( lk_mpp .AND. (ln_ctl .OR. sn_cfctl%l_runstat)) THEN 155 & ISNAN( zmax(1) + zmax(2) + zmax(3) ) ) ) THEN ! NaN encounter in the tests 156 IF( lk_mpp .AND. ln_ctl ) THEN 165 157 CALL mpp_maxloc( 'stpctl', ABS(sshn) , ssmask(:,:) , zzz, ih ) 166 158 CALL mpp_maxloc( 'stpctl', ABS(un) , umask (:,:,:), zzz, iu )
Note: See TracChangeset
for help on using the changeset viewer.