Add u,v and biogeochem variables to the vertical remapping#912
Add u,v and biogeochem variables to the vertical remapping#912travissluka merged 6 commits intodevelopfrom
Conversation
|
@liuxiao37k , should we add your biogeochem tracers as well? |
Aha!! Could this at least partially explain why BGC analysis was so messed up in the hybrid configuration? Yes, if you could please add |
No idea if this will fix your issues @liuxiao37k but I'll add the fields above. |
travissluka
left a comment
There was a problem hiding this comment.
you're not going to like this, but I would prefer if this were done a different way. Odds are we'll add another state variable in the future, forget to add it here, and not know what's going on.
I think the more future-proof fix would be to add a parameter to the fields metadata for "vert interp" or something like that, set it to true by default for 3D fields, and then explicitly set it to false in the fields metadata yaml for the fields we know should not be interpolated.
Sounds good @travissluka , the scenario above is exactly what happened ... |
|
@guillaumevernieres do you know if the remapping is actually tested in any of the ctests? I'm skeptical since none of the answers changed. |
I had the same question before, but I was not sure if our ctests ever used a |
|
The build seems fine and the ctests pass on orion, except the usual test_ens_hofx that fails for me everytime on orion. |
@travissluka , yes, it's "tested" in a few of the ctests, but we interpolate to the same vertical coordinate ... so ... it's "tested". I did check that it actually cycles through the correct variables. |
kbhargava
left a comment
There was a problem hiding this comment.
@guillaumevernieres can you add a log statement so that the check you manually did is reflected in the test logs/results, pretty please?
Good enough @kbhargava ? |
travissluka
left a comment
There was a problem hiding this comment.
thanks @guillaumevernieres

Description
Added u, v, chl, biop, and po4 to the possible remapping cases. This assumes that they are defined on the tracer grid, which isn't the case for (u, v) when reading the model native fields. Use at your own risk!
Issue(s) addressed
Testing
How were these changes tested? part of the ci
What compilers / HPCs was it tested with? gnu
Are the changes covered by ctests?
Dependencies
If testing this branch requires non-default branches in other repositories, list them.
Those branches should have matching names for the automated TravisCI tests to pass
Do PRs in upstream repositories need to be merged first?
If so add the "waiting for other repos" label and list the upstream PRs