[Dart-dev] DART/branches Revision: 12307
dart at ucar.edu
dart at ucar.edu
Wed Jan 10 16:25:01 MST 2018
hendric at ucar.edu
2018-01-10 16:25:00 -0700 (Wed, 10 Jan 2018)
68
If any of the ensemble members fail, return from
get_quad_values.
Modified: DART/branches/recam/models/cam-fv/model_mod.f90
===================================================================
--- DART/branches/recam/models/cam-fv/model_mod.f90 2018-01-10 22:29:01 UTC (rev 12306)
+++ DART/branches/recam/models/cam-fv/model_mod.f90 2018-01-10 23:25:00 UTC (rev 12307)
@@ -753,8 +753,10 @@
call get_quad_vals(state_handle, ens_size, varid, obs_qty, four_lons, four_lats, &
lon_lat_vert, which_vert, quad_vals, status_array)
+!>@todo FIXME : Here we are failing if any ensemble member fails. Instead
+!> we should be using track status...
if (any(status_array /= 0)) then
- istatus(:) = status_array ! cannot get the state values at the corners
+ istatus(:) = maxval(status_array) ! cannot get the state values at the corners
return
endif
@@ -823,7 +825,7 @@
call get_quad_vals(state_handle, ens_size, varid, obs_qty, four_lons, four_lats, &
lon_lat_vert, which_vert, quad_vals, istatus)
-if (any(istatus /= 0)) return
+if (any(istatus /= 0)) return
call quad_lon_lat_evaluate(interp_handle, lon_fract, lat_fract, ens_size, &
quad_vals, interp_vals, istatus)
@@ -871,6 +873,7 @@
call height_to_level(generic_nlevels, generic_height_column, vert_value, &
bot_lev, top_lev, fract, my_status)
+ if (my_status /= 0) return
this_pressure = generic_pressure_column(bot_lev) * fract + &
generic_pressure_column(top_lev) * (1.0_r8-fract)
More information about the Dart-dev
mailing list