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

#1 - Create full_coupler_mod #104

Merged
merged 18 commits into from
May 23, 2024
Merged

Conversation

mlee03
Copy link
Contributor

@mlee03 mlee03 commented Mar 8, 2024

In this PR, module use statements and subroutine definitions found in coupler_main.F90 have been moved to a newly created full_coupler_mod module. In this version of full_coupler_mod most of the imported procedures have been marked as public 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.

@thomas-robinson
Copy link
Member

@mlee03 why not jus merge into main? Why are you using a coupler_dev branch?

@mlee03
Copy link
Contributor Author

mlee03 commented Mar 11, 2024

@thomas-robinson I don't want to be the person who broke main 😁

@mlee03 mlee03 marked this pull request as ready for review March 11, 2024 18:01
@thomas-robinson
Copy link
Member

main is the development branch. That's where this PR should go. We don't need a different branch for everyone's development.

@mlee03 mlee03 changed the base branch from coupler_dev to main March 11, 2024 18:47
Comment on lines 551 to 579
#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
Copy link
Member

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

Copy link
Contributor Author

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!

@mlee03 mlee03 changed the title Create full_coupler_mod #1 - Create full_coupler_mod Apr 17, 2024
@mlee03
Copy link
Contributor Author

mlee03 commented Apr 17, 2024

@thomas-robinson @bensonr, any additional changes?

@mlee03
Copy link
Contributor Author

mlee03 commented May 10, 2024

@thomas-robinson , BEHOLD, everything passes! READY FOR REVIEW

@mlee03 mlee03 requested a review from uramirez8707 May 13, 2024 14:01
@rem1776 rem1776 merged commit 9156f45 into NOAA-GFDL:main May 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants