We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc440d commit 629fcb1Copy full SHA for 629fcb1
1 file changed
grid_utils/constant.h
@@ -15,7 +15,7 @@
15
* PARTICULAR PURPOSE. See the License for the specific language
16
* governing permissions and limitations under the License.
17
***********************************************************************/
18
-#define RADIUS (6371000.)
+
19
#define STRING 255
20
21
#define EPSLN8 (1.e-8)
@@ -25,3 +25,11 @@
25
#define R2D (180/M_PI)
26
#define TPI (2.0*M_PI)
27
#define HPI (0.5*M_PI)
28
29
+/* This matches FMSconstants behavior, and sets Earth radius with gfs_constants.fh value,
30
+ or with gfdl_constants.fh == geos_constants.fh value */
31
+#ifdef GFS_CONSTANTS
32
+#define RADIUS (6371200.)
33
+#else
34
+#define RADIUS (6371000.)
35
+#endif
0 commit comments