fix: passing istatus set for vertislevel and vertisheight mpas_atm #761
+4
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
MPAS_ATM user reported that 2m and 10m fields in the state were not being updated by filter when they had vertical localization switched on.
In
get_close_state
, state with VERTISSURFACE was being converted to VERTISHEIGHT but given a failing istatus so the distance was "far away" (1e9), and thus not updated in the assimilation.This pull request adds a passing istatus to
convert_vert_distrib_state
to the cases that did not set an istatus:This istatus was a problem for
get_close_state
where theconvert_vert_distrib_state
is used, but not forconvert_vertical_state
(since that istatus is ignored).The mpas state is in height (m) so the 3D state variables (non-surface) don't enter the case statement localizing in height (ztypein == ztypeout).
Note I added a note in case (VERTISSCALEHEIGHT) line 5050 because
ztypein == VERTISSURFACE
can never be .true. at that point in the code. I can pull this out and make a separate issue to keep track of that.Fixes issue
fixes #756
Types of changes
Documentation changes needed?
Tests
I compared the state (no inflation) t2m variables before and after assimilation.
no difference = not updated
difference = updated.
Checklist for merging
Checklist for release
Testing Datasets
/glade/derecho/scratch/hkershaw/DART/Bugs/mpas_2m_10m/small_run (low res)
/glade/derecho/scratch/hkershaw/DART/Bugs/mpas_2m_10m/rundir this is the user case (high res)