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

Support for choosing the precision mode of MPAS dycore via CIME #347

Open
kuanchihwang opened this issue Jan 4, 2025 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@kuanchihwang
Copy link
Collaborator

What is the feature/what would you like to discuss?

Since CAM-SIMA PR #327, the capability of running MPAS dycore in single precision mode has been introduced. However, to enable it, users have to manually uncomment the line # export CPPFLAGS += -DSINGLE_PRECISION in the Makefile at src/dynamics/mpas/assets/Makefile.in.CESM.

The ConfigCAM Python class can already parse the dyn_kind argument, which can be specified via the CAM_CONFIG_OPTS variable. Therefore, for better usability, we should allow users to choose the Fortran real kind in MPAS dycore by the usual CIME method:

./xmlchange --append CAM_CONFIG_OPTS="--dyn_kind REAL32" # For single precision
./xmlchange --append CAM_CONFIG_OPTS="--dyn_kind REAL64" # For double precision

Is there anyone in particular you want to be part of this conversation?

No response

Will this change (regression test) answers?

No

Will you be implementing this enhancement yourself?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant