Skip to content

Commit 5478efe

Browse files
authored
Merge pull request #327 from GEOS-ESM/feature/bmauer/fixes-#326
2 parents 9234c99 + 9e8ac9e commit 5478efe

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

CHANGELOG.md

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

1212
### Changed
1313

14+
- Check userRC in ESMF_GridCompRun in GOCART2G gridcomp
1415
- The pressure lid change associated with the introduction of run0 to set 0 above the lid
1516
- Fwet value in dust modified from 0.8 to 1.0
1617
- Dust and Sea salt Emission scale factors updated for L181

ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)