Fixes bug in tracer read in for global init#511
Fixes bug in tracer read in for global init#511mark-petersen merged 3 commits intoMPAS-Dev:ocean/developfrom
Conversation
|
@vanroekel, this is great! I added the same fix for salinity and ecosystem tracers, as you'll see above. |
xylar
left a comment
There was a problem hiding this comment.
Testing
I tested this PR (with my commit for salinity and ecosystem tracers) and was able to initialize the following, and I checked that salinity looked right (definitely wasn't all zeros and was in the expected range):
QU240QU240wISCEC60to30EC60to30wISCSO60to10wISC
I tested a merge of this PR, #506, #507, #508 and #510 together through spin-up for the following test cases:
EC60to30EC60to30wISCSO60to10wISC
Previously the depth coordinate for target has been the same as the tracer IC file. When the depth is different the code would look for a variable during read that did not exist in the tracer IC due to a bug. This fixes this issue
|
@mark-petersen, thanks for reviewing and merging those other three, much appreciated! Once this one is merged, I'll rebase my various other in-progress PRs. |
6c06cd8 to
52c9996
Compare
4b925d1 to
c1ae890
Compare
|
When running initial_state you now see this at the end with the text output. Here is the EC60to30 64 layer: |
mark-petersen
left a comment
There was a problem hiding this comment.
tested nightly regression suite, initial state for EC60to30 64L, EC60to30 60L
|
@mark-petersen, your plotting and stats routines don't seem to be masking out cells below |
|
But I'm very happy to have these histograms! |
|
Thanks for the comment. I will mask those out soon. |
|
I already did in #512 |
|
@xylar and @vanroekel, I created these, start to finish, on the current head of ocean/develop 5345dd3 after merging this PR: Both got through the 20-day spin-up without any trouble. |
|
Great! I'm going to work on the SO60to10wISC tonight or tomorrow. |


Previously the depth coordinate for target has been the same as the
tracer IC file. When the depth is different the code would look for a
variable during read that did not exist in the tracer IC due to a bug. This fixes
this issue