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

Fixes to run the null model #75

Merged
merged 14 commits into from
Oct 24, 2022
Merged

Fixes to run the null model #75

merged 14 commits into from
Oct 24, 2022

Conversation

rem1776
Copy link
Contributor

@rem1776 rem1776 commented Jun 3, 2022

Changes the script to add an option to copy FMS instead of cloning in order to run in the CI for NOAA-GFDL/FMS#975 , and changes the output so it'll be displayed on github.

Also makes a few code changes to allow the null model tests to run.
The ice model would fail from attempting to read without an io domain, so the added code just checks for an associated io domain before it tries to open the ice files.

@rem1776 rem1776 mentioned this pull request Jun 3, 2022
8 tasks
@@ -524,8 +526,12 @@ subroutine ice_model_init ( Ice, Time_Init, Time, &
!enddo
!enddo

! check if io domain set up, if so check if file can be opened
do_io = associated( mpp_get_io_domain(Ice%domain) )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be simpler to set the io_domain to (1,1) here and at L1175 when it's undefined? There are still tests to ensure the file exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had figured if it wasn't using the io domain it would be better not to set it, but probably doesn't make much of a difference. I'll change it to that instead.

@@ -524,8 +526,12 @@ subroutine ice_model_init ( Ice, Time_Init, Time, &
!enddo
!enddo

! check if io domain set up, if so check if file can be opened
do_io = associated( mpp_get_io_domain(Ice%domain) )
if( do_io ) do_io = open_file(land_mask_fileobj, 'INPUT/land_mask.nc', 'read', Ice%domain)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you are resetting the variable used within the if-test, have you checked to make sure there isn't an error when do_io=.T. and the return from open_file sets do_io to .F.? I definitely wouldn't rely in Intel unless we have strict language compliance enabled.

@@ -524,8 +526,12 @@ subroutine ice_model_init ( Ice, Time_Init, Time, &
!enddo
!enddo

! check if io domain set up, if so check if file can be opened
do_io = associated( mpp_get_io_domain(Ice%domain) )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rem1776 have you tested this with the aquaplanet and doubly periodic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did but I'll double check with the current FMS before I merge this in

@rem1776 rem1776 merged commit 7c47be3 into NOAA-GFDL:main Oct 24, 2022
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.

3 participants