-
Notifications
You must be signed in to change notification settings - Fork 169
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
[PULL REQUEST] Disable writing out of diaginfo.dat and tracerinfo.dat for WRF-GC. #165
Conversation
In WRF-GC, a bug in the preprocessor constant code in gc_environment_mod caused a writeout of diaginfo and tracerinfo.dat files in a massively parallel environment, because the code was only walled off for ESMF_ and not MODEL_WRF. This has now been fixed, as it was causing massive slowdowns in WRF-GC initialization above hundreds of cores. Signed-off-by: Haipeng Lin <hplin@seas.harvard.edu>
I'd like to advocate for a MODEL_CLASSIC switch. Code like this is only relevant for GC-Classic, so it makes sense to specify that rather than de-specify every other implementation (even if this specific case is probably short-lived, being BPCH-related). |
I remember we brought this up some time ago. It makes sense to have I think in this particular case this code could be walled off without any pre-processor constant. Checking for |
Should GC-Classic/GCHP have special status? Personally I do only see them as implementations - but I'm aware my perspective on this is pretty aggressive. |
I think the diaginfo.dat and tracerinfo.dat code should be bracketed in a BPCH_DIAG cpp ifdef. These files are only useful if using binary diagnostics. That being said, we should also discuss cpp switches since there is room for improvement. Some of the existing ones can be removed or consolidated, and there are others we should probably have (I am a proponent of MODEL_CLASSIC). There will also be an increasing number of them as we interface with more ESMs. Ideally we would come up with a consistent philosophy about using them in advance and stick with it. I will start a separate discussion thread for this. |
This is now merged into dev/12.7.0. @jimmielin @lizziel The call to |
@msulprizio Hi Melissa, Sorry, it was apparently added in a recent version. I was using 12.2.1 with WRF-GC for testing. Nevermind, thanks! |
No problem! |
Hi GCST,
Please find below a very simple fix that was causing massively slowdowns for WRF-GC. Details are in the original commit message below. This does not affect anything other than
MODEL_WRF
.Thanks!
Haipeng