Skip to content

Commit

Permalink
fix the tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
xyuan committed Nov 8, 2023
1 parent 391709c commit e1f08e3
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 106 deletions.
48 changes: 24 additions & 24 deletions Source/Radiation/Radiation.H
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* RTE-RRTMGP radiation model interface to ERF
* The orginal code is developed by RobertPincus, and the code is open source available at:
* https://github.com/earth-system-radiation/rte-rrtmgp
* Please reference to the following paper,
* Please reference to the following paper,
* https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2019MS001621
* NOTE: we use the C++ version of RTE-RRTMGP, which is the implemention of the original Fortran
* code using C++ YAKL for CUDA, HiP and SYCL application by E3SM ECP team, the C++ version
* of the rte-rrtmgp code is located at:
* https://github.com/E3SM-Project/rte-rrtmgp
* The RTE-RRTMGP uses BSD-3-Clause Open Source License, if you want to make changes,
* The RTE-RRTMGP uses BSD-3-Clause Open Source License, if you want to make changes,
* and modifications to the code, please refer to BSD-3-Clause Open Source License.
*/
#ifndef ERF_RADIATION_H
Expand Down Expand Up @@ -51,7 +51,7 @@ class Radiation {
// run radiation model
void run();

// call back
// call back
void on_complete();

void radiation_driver_lw(int ncol, int nlev,
Expand All @@ -62,23 +62,23 @@ class Radiation {
real2d& qrl, real2d& qrlc);

void radiation_driver_sw(int ncol,
real3d& gas_vmr, real2d& pmid, real2d& pint, real2d& tmid,
real3d& gas_vmr, real2d& pmid, real2d& pint, real2d& tmid,
real2d& albedo_dir, real2d& albedo_dif, real1d& coszrs,
real3d& cld_tau_gpt, real3d& cld_ssa_gpt, real3d& cld_asm_gpt,
real3d& aer_tau_bnd, real3d& aer_ssa_bnd, real3d& aer_asm_bnd,
FluxesByband& fluxes_clrsky, FluxesByband& fluxes_allsky,
real2d& qrs, real2d& qrsc);

void set_daynight_indices(real1d& coszrs,
int1d& day_indices,
void set_daynight_indices(real1d& coszrs,
int1d& day_indices,
int1d& night_indices);

void get_gas_vmr(const std::vector<std::string>& gas_names,
void get_gas_vmr(const std::vector<std::string>& gas_names,
real3d& gas_vmr);

void calculate_heating_rate(real2d& flux_up,
real2d& flux_dn,
real2d& pint,
void calculate_heating_rate(real2d& flux_up,
real2d& flux_dn,
real2d& pint,
real2d& heating_rate);
private:
// geometry
Expand All @@ -91,7 +91,7 @@ class Radiation {
int nlev, zlo, zhi;

// number of columns in horizontal plane
int ncol;
int ncol;

int nlwgpts, nswgpts;
int nlwbands, nswbands;
Expand All @@ -101,11 +101,11 @@ class Radiation {
bool do_long_wave_rad;
bool do_snow_optics;

// Flag to indicate whether to do aerosol optical calculations. This
// Flag to indicate whether to do aerosol optical calculations. This
// zeroes out the aerosol optical properties if False
bool do_aerosol_rad = true;

// rrtmgp
// rrtmgp
Rrtmgp radiation;

// optics radation properties
Expand All @@ -121,7 +121,7 @@ class Radiation {
real1d net_flux;

// This should be module data or something specific to aerosol where it is used?
bool is_cmip6_volc; // true if cmip6 style volcanic file is read otherwise false
bool is_cmip6_volc; // true if cmip6 style volcanic file is read otherwise false

real dt; // time step(s) - needed for aerosol optics call

Expand All @@ -131,33 +131,33 @@ class Radiation {
real1d flns; //(ncols) ! Srf longwave cooling (up-down) flux
real1d flnt; //(ncols) ! Net outgoing lw flux at model top
real1d fsds; //(ncols) ! Surface solar down flux

// radiation data
const std::vector<std::string> active_gases = {
"H2O", "CO2", "O3", "N2O",
"H2O", "CO2", "O3", "N2O",
"CO", "CH4", "O2", "N2" };

bool spectralflux = false; // calculate fluxes (up and down) per band.

// Flag to indicate whether or not to use the radiation timestep for solar zenith
// angle calculations. If true, use the radiation timestep for all solar zenith
// angle calculations. If true, use the radiation timestep for all solar zenith
// angle (cosz) calculations.
// TODO: How does this differ if value is .false.?
bool use_rad_dt_cosz = false;

// Value for prescribing an invariant solar constant (i.e. total solar
// Value for prescribing an invariant solar constant (i.e. total solar
// irradiance at TOA). Used for idealized experiments such as RCE.
// Disabled when value is less than 0.
real fixed_total_solar_irradiance = -1.;

// The RRTMGP warnings are printed when the state variables need to be limted,
// such as when the temperature drops too low. This is not normally an issue,
// but in aquaplanet and RCE configurations these situations occur much more
// but in aquaplanet and RCE configurations these situations occur much more
// frequently, so this flag was added to be able to disable those messages.
bool rrtmgp_enable_temperature_warnings = true;

// Output diagnostic brightness temperatures at the top of the
// atmosphere for 7 TOVS/HIRS channels (2,4,6,8,10,11,12) and 4 TOVS/MSU
// atmosphere for 7 TOVS/HIRS channels (2,4,6,8,10,11,12) and 4 TOVS/MSU
// channels (1,2,3,4).
// TODO: where are these options set?
bool dohirs = false;
Expand All @@ -183,18 +183,18 @@ class Radiation {
std::vector<std::string> aernames;

int1d rrtmg_to_rrtmgp;

// Pointers to heating rates on physics buffer
real2d qrs; // shortwave radiative heating rate
real2d qrl; // longwave radiative heating rate
real2d qrs; // shortwave radiative heating rate
real2d qrl; // longwave radiative heating rate

// Pointers to fields on the physics buffer
real2d zi;
real2d clear_rh;

// Clear-sky heating rates are not on the physics buffer, and we have no
// reason to put them there, so declare these are regular arrays here
real2d qrsc;
real2d qrsc;
real2d qrlc;

real2d tmid, pmid, pdel;
Expand Down
Loading

0 comments on commit e1f08e3

Please sign in to comment.