-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add freshwater tracers #108
Add freshwater tracers #108
Conversation
@jonbob When you have time, would you be willing to take a look at this PR and let me know if you see any obvious issues why E3SM builds would fail while MPAS-O builds are successful? I imagine I might have missed something that your namelist-related scripts would pick up. Here's the build log if that's helpful. I didn't see anything that looked informative to me. Thank you so much! |
@irenavankova Here's the branch in case you'd like to start taking a look at it. |
@cbegeman I see this in the bld log:
I don't see that config option anywhere in this PR, are you perhaps running this on top of a different branch? |
good catch, @darincomeau. Let me see if running the scripts to make bld files helps |
@cbegeman -- the problem is that we haven't brought the wetting_drying namelist into E3SM yet, so the
namelist setting isn't currently available. We can bring it in, but it might take some discussion |
Thanks, @darincomeau and @jonbob! This PR doesn't depend on wetting and drying at all. How can I get around this? Is there a particular commit/tag I should rebase this onto? |
@cbegeman, it looks like that's the base case you're trying to compare this branch to (based on the Could it be that the test case you're trying to run isn't a good choice? |
I've been using:
|
For what it's worth, I was able to build
@cbegeman, it might be worth giving it another try. |
@jonbob I'm not seeing the new tracer group config options appear in the namelist for e3sm cases. When you have a chance, can you give this branch a look and see if I've missed anything in the e3sm build namelists/scripts? |
@cbegeman -- I'll look now. Oh, you have to add the new group to the groups list in build-namelist |
5e90fd0
to
81f93b2
Compare
Past line 1819 in build-namelist add a new line tracer_forcing_freshwatertracers |
Thanks for pointing this fix out @irenavankova! 81f93b2 |
components/mpas-ocean/bld/namelist_files/namelist_defaults_mpaso.xml
Outdated
Show resolved
Hide resolved
@cbegeman, the subglacial runoff is in master now. Do you want me to add the subglacial tracers to this pull request before moving it on? |
The branch I used for the gcase runs with subglacial runoff tracers is here: E3SM-Project/E3SM@master...irenavankova:E3SM:sgr_tracers Probably a bit messy, so let me know if you want me to pick out something specific |
@irenavankova I'll rebase this branch then compare the code against your branch. I'll let you know if I have any questions or issues. Thanks! |
4811507
to
d1febf3
Compare
@irenavankova Can you rerun one of your isomip_plus configurations with subglacial fluxes with this new branch to test that capability? As far as I can tell, there's not an easy way to turn sgr on in this test case. I have rerun an isomip_plus case and it seems to be working as expected for ismf. |
I ll rerun it, I have a compass branch modified for that. It might not be till tomorrow though. |
@irenavankova No rush! Thanks! |
@cbegeman, the isomip case with subglacial tracers runs fine on your branch. Here is subglacial freshwater tracer in the top layer (first month average): ![]() And here the associated landice freshwater tracer: ![]() |
8690ea8
to
119ac80
Compare
119ac80
to
f938f02
Compare
@irenavankova and @xylar Would you like to see anything further before I migrate this to E3SM? I just ran the |
@cbegeman, have you tried to run with DSGR compset to make sure that the tracers work there in the current implementation? I had put the subglacial tracers in onto your branch back in July and have been running fine with that, but I am not sure if you implemented that over or used mine, the now very old branch I was running with is here: https://github.com/irenavankova/E3SM/tree/sgr_tracers |
subroutine ocn_surface_bulk_forcing_freshwater_tracers_subglacial_runoff(meshPool, forcingPool, & | ||
tracersSurfaceFluxSubglacialRunoff, err)!{{{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@irenavankova Here is the routine that implements the subglacial runoff freshwater tracer if you want to take a look.
@irenavankova If the DSGR capability is not tested in the |
I am not familiar with the standardized test suits, there was one added for DSGR though: If you want to I can just try to setup and run a case with DSGR manually and check that |
@irenavankova Thanks for pointing me to that. I'll run the whole |
@irenavankova All |
Great, thanks for checking that! |
@xylar I'm migrating this to E3SM. If you have any suggested testing or feedback you can provide it there. |
Sorry, yes, that's fine! |
This PR adds a freshwater tracer group that tracks the concentration of all surface mass fluxes to the ocean. The nonlocal flux term is not included because it would require a new
nonLocalSurfaceTracerFlux
struct array to separate the salinity flux into its constituent mass source terms. That term is also not included for other passive tracers.