Skip to content

Commit

Permalink
use amrex::Math::powi
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Jan 10, 2025
1 parent ef25521 commit 211812a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/RKC/rkc.H
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ int rkclow (BurnT& state, RkcT& rstate)
}
} else {
amrex::Real temp1 = p8 * absh * std::cbrt(errold);
amrex::Real temp2 = std::abs(hold) * std::cbrt(err) * std::cbrt(err);
amrex::Real temp2 = std::abs(hold) * amrex::Math::powi<2>(std::cbrt(err));
if (temp1 < fac * temp2) {
fac = temp1 / temp2;
}
Expand Down

0 comments on commit 211812a

Please sign in to comment.