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

More useful message when detecting bad surface state #955

Merged
merged 1 commit into from
Jul 22, 2019
Merged

More useful message when detecting bad surface state #955

merged 1 commit into from
Jul 22, 2019

Conversation

adcroft
Copy link
Collaborator

@adcroft adcroft commented Jul 21, 2019

When the surface state went out of user-specified bounds we reported an error such as:

WARNING from PE   130: Extreme surface sfc_state detected: i=  18 j=  18 x= -60.625 y= -72.075 D= 1.9385E+01 SSH=-1.1945E+00 SST=-2.5183E+00 SSS= 3.2605E+01 U-= 0.0000E+00 U+=-8.9452E-03 V-= 0.0000E+00 V+= 0.0000E+00

The i,j here are the on-core local i,j and the x,y are the geographic location (so you can find the location on a map). Neither of these are particularly useful when looking at actual model output unless you are adept on projections.

This commit changes the message to:

WARNING from PE   130: Extreme surface sfc_state detected: i= 958 j=  89 lon= -60.625 lat= -72.075 x= -60.042 y= -72.075 D= 1.9385E+01 SSH=-1.1945E+00 SST=-2.5183E+00 SSS= 3.2605E+01 U-= 0.0000E+00 U+=-8.9452E-0
3 V-= 0.0000E+00 V+= 0.0000E+00

which allows you to look at model output using either indices or coordinates and still find the location on a map.

  • Changes the reported i,j-location to global index
  • Adds the diagnostic grid-lon,lat to report

When the surface state went out of user-specified bounds we reported an error such as:
```
WARNING from PE   130: Extreme surface sfc_state detected: i=  18 j=  18 x= -60.625 y= -72.075 D= 1.9385E+01 SSH=-1.1945E+00 SST=-2.5183E+00 SSS= 3.2605E+01 U-= 0.0000E+00 U+=-8.9452E-03 V-= 0.0000E+00 V+= 0.0000E+00
```
The i,j here are the on-core local i,j and the x,y are the geographic location (so you can find the location on a map).
Neither of these are particularly useful when looking at actual model output unless you are adept on porjections.

This commit changes the message to:
```
WARNING from PE   130: Extreme surface sfc_state detected: i= 958 j=  89 lon= -60.625 lat= -72.075 x= -60.042 y= -72.075 D= 1.9385E+01 SSH=-1.1945E+00 SST=-2.5183E+00 SSS= 3.2605E+01 U-= 0.0000E+00 U+=-8.9452E-0
3 V-= 0.0000E+00 V+= 0.0000E+00
```
which allows you to look at model output using either indices or coordinates and still find the location on a map.

- Changes the reported i,j-location to global index
- Adds the diagnostic grid-lon,lat to report
@adcroft
Copy link
Collaborator Author

adcroft commented Jul 21, 2019

@marshallward marshallward merged commit b2ff4a8 into mom-ocean:dev/gfdl Jul 22, 2019
@adcroft adcroft deleted the fix-bad-val-output branch December 3, 2019 14:45
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.

2 participants