Changeset 34 in lmdz_wrf for branches/LMDZ_WRFmeas
- Timestamp:
- Jul 23, 2014, 12:56:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LMDZ_WRFmeas/WRFV3/lmdz/diagphy_mod.F90
r33 r34 80 80 integer pas 81 81 ! L. Fita, LMD July 2014 82 CHARACTER(LEN=50) :: errmsg, fname 82 CHARACTER(LEN=50) :: errmsg, fname, varname 83 83 LOGICAL :: found 84 REAL :: largest 84 85 85 86 fname = 'diagphy' 86 87 errmsg = 'ERROR -- error -- ERROR -- error' 88 largest = 10000. 87 89 88 90 save pas … … 154 156 155 157 ! L. Fita, LMD July 2014. Checking for consistency 156 IF (fs_bound .NE. fs_bound .OR. ABS(fs_bound) > 100000.) THEN158 IF (fs_bound .NE. fs_bound .OR. ABS(fs_bound) > laragest) THEN 157 159 PRINT *,TRIM(errmsg) 158 160 PRINT *,' ' + TRIM(fname) + ': Wrong fs_bound= ',fs_bound,' !!!' 159 161 PRINT *,' fs_bound: Heat flux at atm. boundaries' 160 162 PRINT *,' fs_bound = stops-stopl - (ssols+ssoll)+ssens+sfront' 161 PRINT *,' stops-stopl= ',stops-stopl 163 PRINT *,' airetot= ',airetot 164 IF (airetot .NE. airetot .OR. ABS(airetot) > largest) THEN 165 varname = 'airephy' 166 CALL check_var(fname, varn, airephy, klon, largest, .FALSE.) 167 END IF 168 PRINT *,' stops= ',stops 169 IF (stops .NE. stops .OR. ABS(stops) > largest) THEN 170 varname = 'tops' 171 CALL check_var(fname, varn, tops, klon, largest, .FALSE.) 172 END IF 173 PRINT *,' stopl= ',stopl 174 IF (stopl .NE. stopl .OR. ABS(stopl) > largest) THEN 175 varname = 'topl' 176 CALL check_var(fname, varn, topl, klon, largest, .FALSE.) 177 END IF 162 178 PRINT *,' ssols= ',ssols 179 IF (ssols .NE. ssols .OR. ABS(ssols) > largest) THEN 180 varname = 'sols' 181 CALL check_var(fname, varn, sols, klon, largest, .FALSE.) 182 END IF 163 183 PRINT *,' ssoll= ',ssoll 184 IF (ssoll .NE. ssoll .OR. ABS(ssoll) > largest) THEN 185 varname = 'soll' 186 CALL check_var(fname, varn, soll, klon, largest, .FALSE.) 187 END IF 164 188 PRINT *,' ssens= ',ssens 189 IF (ssens .NE. ssens .OR. ABS(ssens) > largest) THEN 190 varname = 'sens' 191 CALL check_var(fname, varn, sens, klon, largest, .FALSE.) 192 END IF 165 193 PRINT *,' sfront= ',sfront 194 IF (sfront .NE. sfront .OR. ABS(sfront) > largest) THEN 195 varname = 'evap' 196 CALL check_var(fname, varn, evap, klon, largest, .FALSE.) 197 varname = 'rain_fall' 198 CALL check_var(fname, varn, rain_fall, klon, largest, .FALSE.) 199 varname = 'snow_fall' 200 CALL check_var(fname, varn, snow_fall, klon, largest, .FALSE.) 201 varname = 'ts' 202 CALL check_var(fname, varn, ts, klon, largest, .FALSE.) 203 END IF 166 204 STOP 167 205 END IF … … 173 211 PRINT *,' fq_bound = evap_tot - rain_fall_tot -snow_fall_tot' 174 212 PRINT *,' evap_tot= ',evap_tot 213 PRINT *,' airetot= ',airetot 214 IF (airetot .NE. airetot .OR. ABS(airetot) > largest) THEN 215 varname = 'airephy' 216 CALL check_var(fname, varn, airephy, klon, largest, .FALSE.) 217 END IF 218 IF (evap_tot .NE. evap_tot .OR. ABS(evap_tot) > largest) THEN 219 varname = 'evap' 220 CALL check_var(fname, varn, evap, klon, largest, .FALSE.) 175 221 PRINT *,' rain_fall_tot= ',rain_fall_tot 222 IF (rain_fall_tot .NE. rain_fall_tot .OR. ABS(rain_fall_tot) > largest) THEN 223 varname = 'rain_fall' 224 CALL check_var(fname, varn, rain_fall, klon, largest, .FALSE.) 176 225 PRINT *,' snow_fall_tot= ',snow_fall_tot 226 IF (snow_fall_tot .NE. snow_fall_tot .OR. ABS(snow_fall_tot) > largest) THEN 227 varname = 'snow_fall' 228 CALL check_var(fname, varn, snow_fall, klon, largest, .FALSE.) 177 229 STOP 178 230 END IF
Note: See TracChangeset
for help on using the changeset viewer.