Skip to content

Commit

Permalink
fix the whitespace check error
Browse files Browse the repository at this point in the history
  • Loading branch information
xyuan committed Nov 3, 2023
1 parent b8cf051 commit 7250314
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Source/Radiation/Albedo.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void set_albedo(const real1d& coszrs, real2d& albedo_dir, real2d& albedo_dif)
// Albedos for land type I (Briegleb)
auto nswbands = albedo_dir.extent(0);
auto ncol = albedo_dif.extent(1);
yakl::c::parallel_for(yakl::c::Bounds<2>(nswbands,ncol), YAKL_LAMBDA (int ibnd, int icol) {
yakl::c::parallel_for(yakl::c::Bounds<2>(nswbands,ncol), YAKL_LAMBDA (int ibnd, int icol) {
albedo_dir(ibnd, icol) = 1.4 * 0.24 / ( 1. + 0.8 * coszrs(icol));
albedo_dif(ibnd, icol) = 1.2 * 0.24;
});
Expand Down
6 changes: 3 additions & 3 deletions Source/Radiation/Init_rrtmgp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// Rrtmgp
#include "Rrtmgp.H"

void Rrtmgp::initialize(int num_gas, std::vector<std::string> active_gas_names,
const char* rrtmgp_coefficients_file_sw,
void Rrtmgp::initialize(int num_gas, std::vector<std::string> active_gas_names,
const char* rrtmgp_coefficients_file_sw,
const char* rrtmgp_coefficients_file_lw)
{
// First, make sure yakl has been initialized
Expand All @@ -29,7 +29,7 @@ void Rrtmgp::initialize(int num_gas, std::vector<std::string> active_gas_names,
// rad_cnst objects are setup yet.
// the other tasks!
ngas = num_gas;
for (auto i = 0; i < ngas; ++i)
for (auto i = 0; i < ngas; ++i)
gas_names[i] = active_gas_names[i].c_str();

coefficients_file_sw = rrtmgp_coefficients_file_sw;
Expand Down
10 changes: 5 additions & 5 deletions Source/Radiation/Rrtmgp.H
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* 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
* For details of the radiation algorithm, please reference to the following paper,
* For details of the radiation algorithm, 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 reimplemented 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_RRTMGP_H
Expand Down Expand Up @@ -42,8 +42,8 @@ class Rrtmgp {
~Rrtmgp() = default;

// initialize and load gas property data for rrtmgp radiation
void initialize(int num_gas, std::vector<std::string> active_gas_names,
const char* rrtmgp_coefficients_file_sw,
void initialize(int num_gas, std::vector<std::string> active_gas_names,
const char* rrtmgp_coefficients_file_sw,
const char* rrtmgp_coefficients_file_lw);

// finalize/clean up
Expand Down Expand Up @@ -113,7 +113,7 @@ class Rrtmgp {
template<typename DType>
void multifab_to_array();

template<typename DType>
template<typename DType>
void array_to_multifab();

// number of gas for radiation model
Expand Down

0 comments on commit 7250314

Please sign in to comment.