@@ -120,6 +120,10 @@ subroutine SetServices ( GC, RC )
120120 character (len= ESMF_MAXSTR) :: SURFRC
121121 type (ESMF_Config) :: SCF
122122
123+ ! <<>> MSL DEV
124+ character (len= ESMF_MAXSTR) :: co2provider
125+ real :: co2_
126+
123127! =============================================================================
124128
125129! Begin...
@@ -1114,6 +1118,27 @@ subroutine SetServices ( GC, RC )
11141118 ' CFC11 ' ,' CFC12 ' ,' HCFC22' / ), &
11151119 DST_ID= RAD, SRC_ID= CHEM, RC= STATUS )
11161120 VERIFY_(STATUS)
1121+
1122+ ! <<>> MSL DEV
1123+ ! CO2 is not listed as a RAT, so add it here outside of the RATs code logic
1124+ ! It also doesn't appear in PCHEM, so we can't make it part of the RATs list
1125+ ! -- get info from AGCM.rc
1126+ call ESMF_ConfigGetAttribute(CF, co2provider, Default= ' None' , &
1127+ Label= " CO2_PROVIDER:" , __RC__ )
1128+ call ESMF_ConfigGetAttribute(CF, co2_, Default=- 1.0 , &
1129+ Label= " CO2:" , __RC__ )
1130+ if (trim (co2provider) .eq. ' GOCART' .and. CO2_ .eq. - 2.0 ) then
1131+ CALL MAPL_AddConnectivity( GC, &
1132+ SHORT_NAME = (/ ' CO2' / ), &
1133+ DST_ID= RAD, SRC_ID= CHEM, RC= STATUS )
1134+ VERIFY_(STATUS)
1135+ endif
1136+ if (trim (co2provider) .eq. ' RRG' .and. CO2_ .eq. - 2.0 ) then
1137+ CALL MAPL_AddConnectivity( GC, &
1138+ SHORT_NAME = (/ ' CO2' / ), &
1139+ DST_ID= RAD, SRC_ID= CHEM, RC= STATUS )
1140+ VERIFY_(STATUS)
1141+ endif
11171142! -----------------------------------------------------------------
11181143
11191144 call MAPL_AddConnectivity ( GC, &
0 commit comments