Skip to content

Commit 0a7acf3

Browse files
relaxed tolerance for grid_is_ok (#4906)
1 parent 6fb5e9c commit 0a7acf3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Fixed
1313

14+
- Relaxed the comparison standard for grid_is_ok in case a grid is r4
15+
1416
### Added
1517

1618
### Changed

geom/CubedSphere/CubedSphereGetGlobalHorzIJIndex.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ logical function grid_is_ok_(grid, stretched, IM_WORLD, dalpha, alpha, shift) re
295295
accurate_lon = 1.750d0*MAPL_PI_R8 - shift0
296296
accurate_lat = [(-alpha + (j-1)*dalpha, j = J1, J2)]
297297

298-
if (any(abs(accurate_lon - lonRe) > 2.0*tolerance) .or. &
299-
any(abs(accurate_lat - latRe) > 2.0*tolerance)) then
298+
if (any(abs(accurate_lon - lonRe) > 20.0*tolerance) .or. &
299+
any(abs(accurate_lat - latRe) > 20.0*tolerance)) then
300300
print*, "Error in grid_is_ok_: grid may not have pi/18 Japan mountain shift,"
301301
print*, " may not be gnomonic_ed, or corners are not accurate enough."
302302
ok = .false.

0 commit comments

Comments
 (0)