Skip to content

Commit c77132d

Browse files
committed
Retrieve co-ordinates via GridGetCoordinates, not GridGet
1 parent 69a6a08 commit c77132d

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

geom/GridGet.F90

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,13 @@ module mapl3g_GridGet
2323

2424
contains
2525

26-
subroutine grid_get(grid, unusable, &
27-
name, &
28-
dimCount, coordDimCount, &
29-
im, jm, &
30-
longitudes, latitudes, &
31-
rc)
32-
26+
subroutine grid_get(grid, unusable, name, dimCount, coordDimCount, im, jm, rc)
3327
type(esmf_Grid), intent(in) :: grid
3428
class(KeywordEnforcer), optional, intent(in) :: unusable
3529
character(:), optional, allocatable, intent(out) :: name
3630
integer, optional, intent(out) :: dimCount
3731
integer, optional, allocatable, intent(out) :: coordDimCount(:)
3832
integer, optional, intent(out) :: im, jm
39-
real(kind=ESMF_KIND_R4), optional, allocatable, intent(out) :: longitudes(:,:)
40-
real(kind=ESMF_KIND_R4), optional, allocatable, intent(out) :: latitudes(:,:)
4133
integer, optional, intent(out) :: rc
4234

4335
integer :: dimCount_
@@ -67,10 +59,6 @@ subroutine grid_get(grid, unusable, &
6759
if (present(jm)) jm = size(coords,2)
6860
end if
6961

70-
if (present(longitudes) .or. present(latitudes)) then
71-
call GridGetCoordinates(grid, longitudes=longitudes, latitudes=latitudes, _RC)
72-
end if
73-
7462
_RETURN(_SUCCESS)
7563
_UNUSED_DUMMY(unusable)
7664
end subroutine grid_get

0 commit comments

Comments
 (0)