-
Notifications
You must be signed in to change notification settings - Fork 103
Add check for nans config option #386
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
Changes from 10 commits
c3e57f4
d84c9b3
a753571
0ff2afe
689d674
b6ba816
79cf208
92ace68
60b9f19
0b862b9
5b26040
f174edd
9817b91
371d752
8f59dba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ module med_methods_mod | |
| end interface med_methods_check_for_nans | ||
|
|
||
| ! used/reused in module | ||
|
|
||
| logical, public :: mediator_checkfornans ! set in med.F90 AdvertiseFields | ||
| logical :: isPresent | ||
| character(len=1024) :: msgString | ||
| type(ESMF_FieldStatus_Flag) :: status | ||
|
|
@@ -2506,12 +2506,12 @@ subroutine med_methods_FB_getmesh(FB, mesh, rc) | |
| end subroutine med_methods_FB_getmesh | ||
|
|
||
| !----------------------------------------------------------------------------- | ||
| subroutine med_methods_FB_check_for_nans(FB, rc) | ||
|
|
||
| use ESMF, only : ESMF_FieldBundle, ESMF_Field, ESMF_FieldBundleGet, ESMF_FieldGet | ||
|
|
||
| subroutine med_methods_FB_check_for_nans(FB, maintask, logunit, rc) | ||
| use ESMF, only : ESMF_FieldBundle, ESMF_Field, ESMF_FieldBundleGet, ESMF_FieldGet | ||
| ! input/output variables | ||
| type(ESMF_FieldBundle) , intent(in) :: FB | ||
| logical , intent(in) :: maintask | ||
| integer , intent(in) :: logunit | ||
| integer , intent(inout) :: rc | ||
|
|
||
| ! local variables | ||
|
|
@@ -2532,9 +2532,10 @@ subroutine med_methods_FB_check_for_nans(FB, rc) | |
|
|
||
| #ifndef CESMCOUPLED | ||
| ! For now only CESM uses shr_infnan_isnan - so until other models provide this | ||
| RETURN | ||
| mediator_checkfornans = .false. | ||
| #endif | ||
|
|
||
| if(.not. mediator_checkfornans) return | ||
|
|
||
|
Comment on lines
2533
to
+2534
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the change in how you set the config variable, we can remove the CESMCOUPLED ifdef here.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I haven't done that yet is that the github ext test doesn't include the cdeps library and thus the share code. I am working on updating the github test to include that and then will remove the ifdefs once I have that working. I got pulled into another issue though so it may be a day or two before I can get back to this, for now I'll convert this PR to draft.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, thanks. I was worried I was holding you up by not testing this yet. |
||
| call ESMF_FieldBundleGet(FB, fieldCount=fieldCount, rc=rc) | ||
| if (ChkErr(rc,__LINE__,u_FILE_u)) return | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.