-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new MARBL interface to initialize Chl #314
Conversation
Total chlorophyll is set to 0 initially, and is not updated until after the first time MOM6 calls get_chl_from_model. This causes two problems: 1. We do not want to compute swpen based on 0 chlorophyll in the first time step 2. Restart tests to fail, because total chlorophyll was being reset back to 0 in the first time step of the restart There are two related fixes in this commit: 1. All interior tendency / surface flux outputs from MARBL are now in the restart file, so the model passes ERS tests 2. If total chlorophyll was not initialized from a restart file, it is computed based on the initial values of the MARBL tracers (which could be from an IC file or a restart file)
This pull request depends on marbl-ecosys/MARBL#474; it shouldn't be merged until MARBL has been updated, and then MOM_interface will need to be updated with the new MARBL tag as well. I thought the changes I made to |
The dummy cap did not contain a component of marbl_single_output_type that I am now using in MARBL_tracers.F90
Instead of passing G -> register_MARBL_tracers(), can use HI to determine i,j extent of CS%SFO and CS%ITO. Also, change order of k and m loops for better memory management (and condense double-loops to a single line)
This requires marbl0.48.2; @klindsay28 and I reviewed it together (and bff4d2a addresses a couple small issues we found), but I'm happy to make additional updates if requested |
Forgot to mention testing -- I ran With the
I didn't run baseline comparisons from the CESM suite -- I expect answers to change for all the MARBL tests, and I didn't touch any non-MARBL modules (plus the CI testing all passed) |
Total chlorophyll is set to 0 initially, and is not updated until after the first time MOM6 calls get_chl_from_model. This causes two problems:
There are two related fixes in this commit: