-
Notifications
You must be signed in to change notification settings - Fork 56
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
#1 - Create full_coupler_mod #104
Conversation
@mlee03 why not jus merge into main? Why are you using a coupler_dev branch? |
@thomas-robinson I don't want to be the person who broke main 😁 |
|
full/coupler_main.F90
Outdated
#ifdef FREDB_ID | ||
#define xstr(s) str(s) | ||
#define str(s) #s | ||
fredb_id = xstr(FREDB_ID) | ||
#else | ||
#warning "FREDB_ID not defined. Continuing as normal." | ||
fredb_id = 'FREDB_ID was not defined (e.g. -DFREDB_ID=...) during preprocessing' | ||
#endif | ||
|
||
arg_count = command_argument_count() | ||
DO i=0, arg_count | ||
CALL get_command_argument(i, arg, status=status) | ||
if (status .ne. 0) then | ||
write (error_unit,*) 'get_command_argument failed: status = ', status, ' arg = ', i | ||
stop 1 | ||
end if | ||
|
||
if (i .eq. 0) then | ||
executable_name = arg | ||
else if (arg == '--fredb_id') then | ||
write (output_unit,*) TRIM(fredb_id) | ||
stop | ||
end if | ||
END DO | ||
|
||
if (arg_count .ge. 1) then | ||
write (error_unit,*) 'Usage: '//TRIM(executable_name)//' [--fredb_id]' | ||
stop 1 | ||
end if |
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.
You need to add this to the description of this PR or you need to open a new PR that has a more general cleanup/removal of parts of the code
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.
Added back in and ready for another round of review!
@thomas-robinson @bensonr, any additional changes? |
@thomas-robinson , BEHOLD, everything passes! READY FOR REVIEW |
In this PR,
module use
statements and subroutine definitions found incoupler_main.F90
have been moved to a newly createdfull_coupler_mod
module. In this version offull_coupler_mod
most of the imported procedures have been marked aspublic
but as coupler subroutines are defined, many of these procedures will become private.Experiments in AM4, AM5, CM4, SPEAR, OM4_extra, and OMIP_CORE2 xmls for regression testing pass.