-
Notifications
You must be signed in to change notification settings - Fork 19
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
Attempt to refactor use of FLAP. #1007
Conversation
- Migrated CapOptions into ./gridcomps/cap - Reduced use of `#ifdef`
`make tests` builds most things, but not quite all.
I don't see any changes here impacting the other refactoring PR, but I blocked it until the other one gets resolved. |
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.
Approved for CMake
Oh wow. GNU does not like this. I wonder if it's a bug in the compiler? |
I'll attach a |
use MAPL_ExceptionHandling | ||
use mapl_KeywordEnforcerMod | ||
use mapl_ExceptionHandling | ||
use mapl_CapOptionsMod, only: MAPL_FlapCli => MAPL_CapOptions |
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.
Seems like the use of the name MAPL_FlapCli
to rename the MAPL_CapOptions
interface for the new_CapOptions
procedure and still using it in this module as the name of the interface holding the new_CapOptions_from_flap
procedure is causing conflicts. Commenting this line though makes it fail in the external components like Fvdycore.
With the result from cli = MAPL_FlapCLI(description='extdata driver',authors='gmao')
cap_options=MAPL_CapOptions(cli) to cap_options = MAPL_FlapCLI(description='extdata driver',authors='gmao') and remove the |
The intent was to avoid needing to edit the application programs which reside in other repos. (I.e., to preserve backwards compatibility. The second line is supposed to just to a copy now which makes it "silly" in the grand scheme of things, but lets those programs be unchanged. I'll try to poke around soon to see if this is a gfortran bug and/or if there is a workaround. |
#ifdef
Description
./base
to./gridcomps/Cap
Related Issue
Motivation and Context
Cleanup.
How Has This Been Tested?
Just MAPL tests. Further testing with GCM is warranted.
Types of changes
Checklist: