Skip to content

Commit

Permalink
fix my error. (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi authored Apr 17, 2024
1 parent 90ebfc4 commit 37d1d12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Source/Radiation/Radiation.H
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,11 @@ class Radiation {

// k-distribution coefficients files to read from. These are set via namelist
// variables.
std::string rrtmgp_file_path;
std::string rrtmgp_coefficients_file_sw = "rrtmgp_coefficients_sw_20181204.nc";
std::string rrtmgp_coefficients_file_lw = "rrtmgp_coefficients_lw_20181204.nc";
std::string rrtmgp_data_path;
std::string rrtmgp_coefficients_file_sw;
std::string rrtmgp_coefficients_file_lw;
std::string rrtmgp_coefficients_file_name_sw = "rrtmgp_coefficients_sw_20181204.nc";
std::string rrtmgp_coefficients_file_name_lw = "rrtmgp_coefficients_lw_20181204.nc";

// Band midpoints; these need to be module variables because of how cam_history works;
// add_hist_coord sets up pointers to these, so they need to persist.
Expand Down
6 changes: 3 additions & 3 deletions Source/Radiation/Radiation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ void Radiation::initialize (const MultiFab& cons_in,
do_snow_optics = do_snow_opt;
is_cmip6_volc = is_cmip6_volcano;

rrtmgp_file_path = getRadiationDataDir() + "/";
rrtmgp_coefficients_file_sw.insert(0,rrtmgp_file_path);
rrtmgp_coefficients_file_lw.insert(0,rrtmgp_file_path);
rrtmgp_data_path = getRadiationDataDir() + "/";
rrtmgp_coefficients_file_sw = rrtmgp_data_path + rrtmgp_coefficients_file_name_sw;
rrtmgp_coefficients_file_lw = rrtmgp_data_path + rrtmgp_coefficients_file_name_lw;

for ( MFIter mfi(cons_in, TilingIfNotGPU()); mfi.isValid(); ++mfi) {

Expand Down

0 comments on commit 37d1d12

Please sign in to comment.