Skip to content

grid utils radius changes with GFS_CONSTANTS#1867

Merged
vithikashah001 merged 5 commits into
NOAA-GFDL:mainfrom
JustinPerket:jp/gfs_radius_fix
Jun 1, 2026
Merged

grid utils radius changes with GFS_CONSTANTS#1867
vithikashah001 merged 5 commits into
NOAA-GFDL:mainfrom
JustinPerket:jp/gfs_radius_fix

Conversation

@JustinPerket
Copy link
Copy Markdown
Contributor

@JustinPerket JustinPerket commented May 6, 2026

Description
Suggested fix of #1866

It is failing workflow for some reason, so I'm putting it in draft

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

Comment thread grid_utils/constant.h Outdated
Comment on lines +18 to +23

#ifdef GFS_CONSTANTS
#define RADIUS (6371200.)
#else
#define RADIUS (6371000.)
#endif
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@JustinPerket - please add documentation stating which reference file the constants came from.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I now have a comment matching the extant usage of Earth radius in FMSconstants and *.fh headers. Is that sufficient?

@JustinPerket JustinPerket marked this pull request as ready for review May 27, 2026 19:14
@vithikashah001 vithikashah001 merged commit 629fcb1 into NOAA-GFDL:main Jun 1, 2026
18 of 19 checks passed
@JustinPerket JustinPerket deleted the jp/gfs_radius_fix branch June 1, 2026 17:24
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