@@ -511,7 +511,7 @@ subroutine Run1 (GC, import, export, clock, RC)
511511 type (ESMF_Alarm) :: alarm
512512 logical :: timeToDoWork
513513
514- integer :: i
514+ integer :: i, user_status
515515
516516 __Iam__(' Run1' )
517517
@@ -543,7 +543,9 @@ subroutine Run1 (GC, import, export, clock, RC)
543543! Run the children
544544! -----------------
545545 do i = 1 , size (gcs)
546- call ESMF_GridCompRun (gcs(i), importState= gim(i), exportState= gex(i), phase= 1 , clock= clock, __RC__)
546+ call ESMF_GridCompRun (gcs(i), importState= gim(i), exportState= gex(i), phase= 1 , clock= clock, userRC= user_status, rc= status)
547+ _VERIFY(status)
548+ _VERIFY(user_status)
547549 end do
548550
549551
@@ -653,7 +655,7 @@ subroutine Run2 (GC, import, export, clock, RC)
653655 real :: nifactor
654656 real , parameter :: pi = 3.141529265
655657 integer :: ind550, ind532
656- integer :: i1, i2, j1, j2, km, k,kk
658+ integer :: i1, i2, j1, j2, km, k,kk, user_status
657659 type (ESMF_Alarm) :: alarm
658660 logical :: timeToDoWork
659661
@@ -684,7 +686,9 @@ subroutine Run2 (GC, import, export, clock, RC)
684686 do i = 1 , size (gcs)
685687 call ESMF_GridCompGet (gcs(i), NAME= child_name, __RC__ )
686688 if ((index (child_name, ' data' )) == 0 ) then ! only execute phase3 method if a computational instance
687- call ESMF_GridCompRun (gcs(i), importState= gim(i), exportState= gex(i), phase= 3 , clock= clock, __RC__)
689+ call ESMF_GridCompRun (gcs(i), importState= gim(i), exportState= gex(i), phase= 3 , clock= clock, userRC= user_status, rc= status)
690+ _VERIFY(status)
691+ _VERIFY(user_status)
688692 end if
689693 end do
690694
@@ -734,7 +738,9 @@ subroutine Run2 (GC, import, export, clock, RC)
734738 do i = 1 , size (gcs)
735739 call ESMF_GridCompGet (gcs(i), NAME= child_name, __RC__ )
736740 if ((index (child_name, ' data' )) == 0 ) then ! only execute phase2 method if a computational instance
737- call ESMF_GridCompRun (gcs(i), importState= gim(i), exportState= gex(i), phase= 2 , clock= clock, __RC__)
741+ call ESMF_GridCompRun (gcs(i), importState= gim(i), exportState= gex(i), phase= 2 , clock= clock, userRC= user_status, rc= status)
742+ _VERIFY(status)
743+ _VERIFY(user_status)
738744 end if
739745 end do
740746
0 commit comments