Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Oct 28, 2023
1 parent 6edfc5f commit 2bf7d02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions neutrinos/sneut5.H
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ struct sneutf_t {
};


template <int do_derivatives>
AMREX_GPU_HOST_DEVICE inline
sneutf_t get_sneut_factors(Real den, Real temp, Real abar, Real zbar) {

Expand Down Expand Up @@ -357,8 +358,8 @@ sneutf_t get_sneut_factors(Real den, Real temp, Real abar, Real zbar) {
Real a1 = std::pow(a0, nu_constants::oneth);

sf.zeta = a1 * sf.xlm1;
sf,zeta2 = zeta * zeta;
sf.zeta3 = zeta2 * zeta;
sf.zeta2 = sf.zeta * sf.zeta;
sf.zeta3 = sf.zeta2 * sf.zeta;

if constexpr (do_derivatives) {
Real a2 = nu_constants::oneth * a1*sf.rmi * sf.xlm1;
Expand Down Expand Up @@ -885,7 +886,7 @@ void sneut5(const Real temp, const Real den,

if (temp < 1.0e7_rt) return;

auto sf = get_sneut_factors(den, temp, abar, zbar);
auto sf = get_sneut_factors<do_derivatives>(den, temp, abar, zbar);


// pair neutrino section
Expand Down

0 comments on commit 2bf7d02

Please sign in to comment.