You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!kinematic surface fluxes are specified (but may need to be converted)
2168
-
if (maxval(input_force_wpthetap(:)) < missing_value_eps) then
2167
+
if (is_missing_value(maxval(input_force_wpthetap(:)))) then
2169
2168
write(*,*) 'The global attribute surfaceForcing in '//trim(adjustl(scm_state%case_name))//'.nc indicates that the variable wpthetap should be present, but it is missing. Stopping ...'
2170
2169
error stop"The global attribute surfaceForcing indicates that the variable wpthetap should be present, but it is missing."
.not. is_missing_value(maxval(input_force_wprtp(:))))) then
2184
+
if (.not. is_missing_value(maxval(input_force_wprvp(:)))) then
2185
2185
do i=1, input_n_forcing_times
2186
2186
input_force_wpqvp(i) = input_force_wprvp(i)/&
2187
2187
(1.0+ input_force_wprvp(i))
2188
2188
end do
2189
2189
end if
2190
-
if (maxval(input_force_wprtp(:)) > missing_value_eps) then
2190
+
if (.not. is_missing_value(maxval(input_force_wprtp(:)))) then
2191
2191
do i=1, input_n_forcing_times
2192
2192
input_force_wpqtp(i) = input_force_wprtp(i)/&
2193
2193
(1.0+ input_force_wprtp(i))
2194
2194
end do
2195
2195
end if
2196
2196
end if
2197
2197
2198
-
if (maxval(input_force_wpqvp(:)) < missing_value_eps .and.maxval(input_force_wpqtp(:)) < missing_value_eps) then
2198
+
if (is_missing_value(maxval(input_force_wpqvp(:))) .and.is_missing_value(maxval(input_force_wpqtp(:)))) then
2199
2199
write(*,*) 'The global attribute surfaceForcing in '//trim(adjustl(scm_state%case_name))//'.nc indicates that the variable wpqvp, wpqtp, wprvp, or wprtp should be present, but all are missing. Stopping ...'
2200
2200
error stop"The global attribute surfaceForcing indicates that the variable wpqvp, wpqtp, wprvp, or wprtp should be present, but all are missing."
2201
2201
else
2202
-
if (maxval(input_force_wpqvp(:)) > missing_value_eps) then!use wpqvp if available
2202
+
if (.not. is_missing_value(maxval(input_force_wpqvp(:)))) then!use wpqvp if available
if (maxval(input_force_sfc_sens_flx(:)) < missing_value_eps) then
2232
+
if (is_missing_value(maxval(input_force_sfc_sens_flx(:)))) then
2233
2233
write(*,*) 'The global attribute surfaceForcing in '//trim(adjustl(scm_state%case_name))//'.nc indicates that the variable sfc_sens_flx should be present, but it is missing. Stopping ...'
2234
2234
error stop"The global attribute surfaceForcing in indicates that the variable sfc_sens_flx should be present, but it is missing."
if (maxval(input_force_sfc_lat_flx(:)) < missing_value_eps) then
2239
+
if (is_missing_value(maxval(input_force_sfc_lat_flx(:)))) then
2240
2240
write(*,*) 'The global attribute surfaceForcing in '//trim(adjustl(scm_state%case_name))//'.nc indicates that the variable sfc_lat_flx should be present, but it is missing. Stopping ...'
2241
2241
error stop"The global attribute surfaceForcing indicates that the variable sfc_lat_flx should be present, but it is missing."
0 commit comments