Skip to content

Commit

Permalink
revert to previous fix for assigning the case_data_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Tracy committed Mar 27, 2024
1 parent bef0d04 commit 29c6963
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scm/src/run_scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,7 @@ def setup_rundir(self):
if input_type == 1:
surface_flux_spec = False
#open the case data file and read the surfaceForcing global attribute
case_data_dir = case_nml['case_config']['case_data_dir']
nc_fid = Dataset(os.path.join(SCM_ROOT, case_data_dir) + '/' + self._case + '_SCM_driver.nc' , 'r')
nc_fid = Dataset(os.path.join(SCM_ROOT, self._case_data_dir) + '/' + self._case + '_SCM_driver.nc' , 'r')
surfaceForcing = nc_fid.getncattr('surface_forcing_temp')
nc_fid.close()
if (surfaceForcing.lower() == 'flux' or surfaceForcing.lower() == 'surface_flux'):
Expand Down

0 comments on commit 29c6963

Please sign in to comment.