Skip to content

Commit

Permalink
Add test to ESMF_GridCreateUTest() reproducingTim's issue in ticket #…
Browse files Browse the repository at this point in the history
…397.
  • Loading branch information
oehmke committed Jan 12, 2024
1 parent 609c811 commit 95e69d7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Infrastructure/Grid/tests/ESMF_GridCreateUTest.F90
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ program ESMF_GridCreateUTest
type(ESMF_Staggerloc) :: staggerLocList(2)
type(ESMF_CubedSphereTransform_Args) :: transformArgs
type(ESMF_Routehandle) :: rh
type(ESMF_Info) :: info


!-----------------------------------------------------------------------------
Expand Down Expand Up @@ -3325,6 +3326,14 @@ program ESMF_GridCreateUTest
coordCalcFlag=ESMF_CUBEDSPHERECALC_LOCAL, rc=localrc)
if (localrc .ne. ESMF_SUCCESS) rc=ESMF_FAILURE

write(*,*) "BOB: ESMF_SUCCESS=",ESMF_SUCCESS
write(*,*) "BOB: After ESMF_GridCreateCubedSphere()=",localrc

! Get Info object
call ESMF_InfoGetFromHost(grid, info, rc=localrc)
write(*,*) "BOB: After ESMF_InfoGetFromHost()=",localrc
call ESMF_InfoSet(info, 'mapl/geom/id', 1, rc=localrc)
write(*,*) "BOB: After ESMF_InfoSet()=",localrc

! Write to make sure it looks ok
call ESMF_GridCellWriteVTK(grid, "csGrid", rc=localrc)
Expand Down Expand Up @@ -3362,7 +3371,6 @@ program ESMF_GridCreateUTest
! destroy grid
call ESMF_GridDestroy(grid, rc=localrc)
if (localrc .ne. ESMF_SUCCESS) rc=ESMF_FAILURE

call ESMF_Test((rc.eq.ESMF_SUCCESS), name, failMsg, result, ESMF_SRCLINE)
!-----------------------------------------------------------------------------

Expand Down

0 comments on commit 95e69d7

Please sign in to comment.