forked from ESCOMP/CAM
-
Notifications
You must be signed in to change notification settings - Fork 22
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
cam_chempp issue with usr_mech_infile when path to compiler is too long #160
Labels
bug
Something isn't working
Comments
@annlew, Thanks for taking this on! I have a few notes / questions:
|
Thanks for the comments!
|
Yes, please create PRs for noresm2_1_develop and noresm2_3_develop. |
gold2718
added a commit
that referenced
this issue
Aug 12, 2024
Increase the char length for path to compiler in chem_pp code Contributors: @annlew, @sarambl Reviewers: @gold2718 Purpose of changes: Avoid chemistry preprocessor failure at compilation when path to compiler exceeds 64 characters Github PR URL: #161 Changes made to build system: Only chemistry preprocessor when usr_mech_infile is specified in env_build.xml Changes made to the namelist: None Changes to the defaults for the boundary datasets: None Substantial timing or memory changes: None Change the char length for cpp path from 64 to 256 in chem_pp code. Test: SMS allactive test with grid = f19_tn14 and compset=NF2000climo with a testmod to run the chemistry preprocessor. Fails with current HEAD of noresm2_1_develop, passes with this PR branch. Issues addressed by this PR: cam_chempp issue with usr_mech_infile when path to compiler is too long (#160)
This was referenced Aug 13, 2024
It modifies the source code so we need to adjust it (not trivial) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Type
Infrastructure Update
Issue Description
When using user provided chemistry mechanism file for a case, the build fails if the path to cpp is longer than 64 characters. Character length is hardcoded in:
components/src/cam_chempp/mozpp.main.f
This turned out to be an issue on Tetralith after OS upgrade and updated compiler suite when using tag cam_cesm2_1_rel_05-Nor_v1.0.5.
This is easy to fix by increasing char length for cpp_dir and I can create a pull request to fix this. However, I'm not sure which branch this should go into in that case. Seems like the structure for the chemistry preprocessor has changed in more recent versions.
Will this change answers?
No
Will you be implementing this yourself?
Yes
The text was updated successfully, but these errors were encountered: