Skip to content

Commit 75229ea

Browse files
committed
Merge branch 'mahf708/eam/sathis' into next (PR #6641)
3rd merge of this branch. Reactivate test with smaller sat file.
2 parents 93e5223 + 9a66d99 commit 75229ea

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

cime_config/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
"REP_Ln5.ne4pg2_oQU480.F2010",
208208
"SMS_Ld3.ne4pg2_oQU480.F2010.eam-thetahy_sl_pg2_mass",
209209
"ERP_Ld3.ne4pg2_ne4pg2.FIDEAL.allactive-pioroot1",
210+
"ERS_Ld5.ne4pg2_oQU480.F2010.eam-sathist_F2010",
210211
)
211212
},
212213

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
./xmlchange RUN_STARTDATE=2015-01-01
3+
./xmlchange RUN_STARTDATE=2018-01-01

components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/user_nl_eam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
&satellite_options_nl
22
sathist_mfilt = 10000,
3-
sathist_track_infile = '$DIN_LOC_ROOT/atm/waccm/sat/sathist_master_19700410-20150419_c20150616.nc'
3+
sathist_track_infile = '$DIN_LOC_ROOT/atm/waccm/sat/satellite_profilelist_orcas_to_socrates_c190208.nc'
44
sathist_hfilename_spec = '%c.eam.h9.sathist.%y-%m-%d-%s.nc'
55
sathist_nclosest = 1
66
sathist_ntimestep = 1

components/eam/src/control/sat_hist.F90

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,14 @@ subroutine read_next_position( ncols )
722722

723723
call read_buffered_datetime( datetime, i )
724724

725-
if ( datetime>begdatetime .and. beg_ndx<0 ) beg_ndx = i
726-
if ( datetime>enddatetime ) exit bnds_loop
725+
if (datetime > begdatetime .and. beg_ndx < 0) then
726+
beg_ndx = i
727+
end if
728+
729+
if (datetime > enddatetime) then
730+
exit bnds_loop
731+
end if
732+
727733
end_ndx = i
728734

729735
enddo bnds_loop

0 commit comments

Comments
 (0)