Skip to content
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

CAM7 test failure - zi (geopotential at interfaces) not read from input #335

Closed
jimmielin opened this issue Dec 12, 2024 · 1 comment
Closed
Labels
bug Something isn't working correctly

Comments

@jimmielin
Copy link
Member

What happened?

CAM7 analytic IC test fails to run

 ERROR:
 Required variables missing from registered list of input variables: geopotentia
 l_height_wrt_surface_at_interface

What are the steps to reproduce the bug?

Use the branch in #316 (if it was not yet merged to SIMA)

Run test suite and observe test case SMS_Ln9.ne5pg3_ne5pg3_mg37.FCAM7.derecho_intel.cam-outfrq_se_cslam_analy_ic

What CAM-SIMA hash were you using?

4bbb920

What machine were you running CAM-SIMA on?

CISL machine (e.g. cheyenne)

What compiler were you using?

Intel

Path to a case directory, if applicable

/glade/derecho/scratch/hplin/aux_sima_intel_20241212144921/SMS_Ln9.ne5pg3_ne5pg3_mg37.FCAM7.derecho_intel.cam-outfrq_se_cslam_analy_ic.GC.aux_sima_intel_20241212144921

Will you be addressing this bug yourself?

Any Software Engineer can do this

Extra info

It appears that if a variable is only intent(out) in tphysbc, write_init_files.py will not write input for this variable into phys_init/physics_inputs.F90.

This only happens in CAM7 because sima_state_diagnostics was moved to tphysac in CAM7; other suites have sima_state_diagnostics (which have zi as intent(in)) in tphysbc.

@nusbaume
Copy link
Collaborator

Just to provide an update, @peverwhee and I were able to find that the issue is likely due to each variable only being included once in the list of variables in the CCPP database, which means if the first group has a variable that is intent(out) then that variable will only be listed as an output variable when CAM-SIMA is generating the initialization routines, even if all other groups have the same variable listed as intent(in). This then prevents CAM-SIMA from properly locating the variable at runtime, hence the error.

@peverwhee is going to try out some possible solutions (thanks Courtney!), but it will likely require an update to the CCPP-framework before this bug can be fixed in CAM-SIMA.

peverwhee added a commit that referenced this issue Jan 9, 2025
Tag name (required for release branches): sima0_00_003
Originator(s): peverwhee

Description (include the issue title, and the keyword ['closes',
'fixes', 'resolves'] followed by the issue number):

Updates framework tag to include bugfix for groups - closes #335 
Updates atmospheric_physics external to use apply_constituent_tendencies
Updates git-fleixmod to 0.9.4

Describe any changes made to build system: n/a

Describe any changes made to the namelist: n/a

List any changes to the defaults for the input datasets (e.g. boundary
datasets): n/a

List all files eliminated and why: n/a

List all files added and what they do: n/a

List all existing files that have been modified, and describe the
changes:
(Helpful git command: `git diff --name-status
development...<your_branch_name>`)

M .gitmodules
- update ccpp-framework and atmospheric_physics tags

M .lib/git-fleixmod/*
- update git-fleixmod to 0.9.4

M test/existing-test-failures.txt
- only MPAS tests still fail

If there are new failures (compared to the
`test/existing-test-failures.txt` file),
have them OK'd by the gatekeeper, note them here, and add them to the
file.
If there are baseline differences, include the test and the reason for
the
diff. What is the nature of the change? Roundoff?

derecho/intel/aux_sima: All PASS except MPAS; new baselines for CAM7
(test never passed before)

derecho/gnu/aux_sima: All PASS except MPAS; new baselines for CAM7 (test
never passed before)

If this changes climate describe any run(s) done to evaluate the new
climate in enough detail that it(they) could be reproduced:

CAM-SIMA date used for the baseline comparison tests if different than
latest:
@nusbaume nusbaume closed this as completed Jan 9, 2025
@github-project-automation github-project-automation bot moved this from To Do to Done in CAM Development Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly
Projects
Status: Done
Development

No branches or pull requests

2 participants