Skip to content

Commit 8f5f774

Browse files
authored
Merge branch 'main' into update_fox_bld
2 parents bb18dea + 01f4761 commit 8f5f774

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

Diff for: datm/cime_config/stream_definition_datm.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,7 @@
35783578
<meshfile>none</meshfile>
35793579
</stream_meshfile>
35803580
<stream_datafiles>
3581-
<file>$DIN_LOC_ROOT/atm/datm7/CO2/fco2_datm_globalSSP3-7.0__simyr_2014-2501_CMIP6_c190506.nc</file>
3581+
<file>$DIN_LOC_ROOT/atm/datm7/CO2/fco2_datm_globalSSP3-7.0_simyr_1750-2501_CMIP6_c201101.nc</file>
35823582
</stream_datafiles>
35833583
<stream_datavars>
35843584
<var>CO2 Sa_co2diag</var>
@@ -4001,7 +4001,7 @@
40014001
<meshfile>$DIN_LOC_ROOT/share/meshes/fv0.9x1.25_141008_polemod_ESMFmesh.nc</meshfile>
40024002
</stream_meshfile>
40034003
<stream_datafiles>
4004-
<file>$DIN_LOC_ROOT/atm/cam/chem/trop_mozart_aero/aero/aerodep_clm_SSP370_b.e21.BWSSP370cmip6.f09_g17.CMIP6-SSP3-7.0-WACCM.001_2014-2101_monthly_0.9x1.25_c190402.nc</file>
4004+
<file>$DIN_LOC_ROOT/atm/cam/chem/trop_mozart_aero/aero/aerodep_clm_SSP370_b.e21.BWSSP370cmip6.f09_g17.CMIP6-SSP3-7.0-WACCM.001_1849-2101_monthly_0.9x1.25_c201103.nc</file>
40054005
</stream_datafiles>
40064006
<stream_datavars>
40074007
<var>BCDEPWET Faxa_bcphiwet</var>

Diff for: dglc/glc_comp_nuopc.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ subroutine ModelAdvance(gcomp, rc)
491491
if (my_task == main_task) then
492492
call ESMF_TimeGet(currTime, timestring=timestring, rc=rc)
493493
if (ChkErr(rc,__LINE__,u_FILE_u)) return
494-
write(logunit,'(a,l)') trim(timestring)//': valid_input for dglc is ',valid_inputs
494+
write(logunit,'(a,l6)') trim(timestring)//': valid_input for dglc is ',valid_inputs
495495
end if
496496

497497
! determine if will write restart

Diff for: streams/dshr_strdata_mod.F90

+17-6
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,7 @@ subroutine shr_strdata_set_stream_iodesc(sdat, per_stream, fldname, pioid, rc)
19541954
character(*), parameter :: F00 = "('(shr_strdata_set_stream_iodesc) ',a,i8,2x,i8,2x,a)"
19551955
character(*), parameter :: F01 = "('(shr_strdata_set_stream_iodesc) ',a,i8,2x,i8,2x,a)"
19561956
character(*), parameter :: F02 = "('(shr_strdata_set_stream_iodesc) ',a,i8,2x,i8,2x,i8,2x,a)"
1957+
character(*), parameter :: F03 = "('(shr_strdata_set_stream_iodesc) ',a,i8,2x,a)"
19571958
!-------------------------------------------------------------------------------
19581959

19591960
rc = ESMF_SUCCESS
@@ -2003,13 +2004,23 @@ subroutine shr_strdata_set_stream_iodesc(sdat, per_stream, fldname, pioid, rc)
20032004

20042005
! determine io descriptor
20052006
if (ndims == 2) then
2006-
if (sdat%mainproc) then
2007-
write(sdat%stream(1)%logunit,F00) 'setting iodesc for : '//trim(fldname)// &
2008-
' with dimlens(1), dimlens2 = ',dimlens(1),dimlens(2),&
2009-
' variable has no time dimension '
2007+
rcode = pio_inq_dimname(pioid, dimids(ndims), dimname)
2008+
if (trim(dimname) == 'time' .or. trim(dimname) == 'nt') then
2009+
if (sdat%mainproc) then
2010+
write(sdat%stream(1)%logunit,F03) 'setting iodesc for : '//trim(fldname)// &
2011+
' with dimlens(1) = ',dimlens(1),' and the variable has a time dimension '
2012+
end if
2013+
call pio_initdecomp(sdat%pio_subsystem, pio_iovartype, (/dimlens(1)/), compdof, &
2014+
per_stream%stream_pio_iodesc)
2015+
else
2016+
if (sdat%mainproc) then
2017+
write(sdat%stream(1)%logunit,F00) 'setting iodesc for : '//trim(fldname)// &
2018+
' with dimlens(1), dimlens(2) = ',dimlens(1),dimlens(2),&
2019+
' variable has no time dimension '
2020+
end if
2021+
call pio_initdecomp(sdat%pio_subsystem, pio_iovartype, (/dimlens(1),dimlens(2)/), compdof, &
2022+
per_stream%stream_pio_iodesc)
20102023
end if
2011-
call pio_initdecomp(sdat%pio_subsystem, pio_iovartype, (/dimlens(1),dimlens(2)/), compdof, &
2012-
per_stream%stream_pio_iodesc)
20132024

20142025
else if (ndims == 3) then
20152026
rcode = pio_inq_dimname(pioid, dimids(ndims), dimname)

0 commit comments

Comments
 (0)