Skip to content

Commit

Permalink
Consistently use rootPet variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
theurich committed Sep 19, 2023
1 parent 8e3a998 commit 3ae9eec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Superstructure/InfoAPI/tests/ESMF_InfoSyncUTest.F90
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ program ESMF_InfoSyncUTest
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)
end if

if (localPet == 0) then
if (localPet == rootPet) then
call desired_eidesc%Initialize(addObjectInfo=.true., rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)

Expand All @@ -224,7 +224,7 @@ program ESMF_InfoSyncUTest
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)
end if

call ESMF_InfoBroadcast(desired_info, 0, rc=rc)
call ESMF_InfoBroadcast(desired_info, rootPet, rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)

call ESMF_InfoSync(state, rootPet, vm, rc=rc)
Expand Down Expand Up @@ -325,7 +325,7 @@ program ESMF_InfoSyncUTest
call eidesc%Destroy(rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)

if (localPet == 0) then
if (localPet == rootPet) then
call desired_eidesc%Destroy(rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)
else
Expand Down

0 comments on commit 3ae9eec

Please sign in to comment.