Skip to content

Commit

Permalink
fix powi errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Sep 18, 2024
1 parent f09c2d5 commit cd5427f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions networks/metal_chem/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ void rhs_specie(const burn_t& state,

Real x198 = X(10)*x196 - x132*x133 + x133*(-x197 - 1.0e-99);

Real x199 = std::pow(10.0, -0.12690000000000001*std::pow(x185, -3.0)*((x72)*(x72)*(x72)) + 1.1180000000000001*std::pow(x185, -2.0)*((x72)*(x72)) - 1.5229999999999999*x187 - 19.379999999999999) + 1.0e-99;
Real x199 = std::pow(10.0, -0.12690000000000001*amrex::Math::powi<-3>(x185)*((x72)*(x72)*(x72)) + 1.1180000000000001*amrex::Math::powi<-2>(x185)*((x72)*(x72)) - 1.5229999999999999*x187 - 19.379999999999999) + 1.0e-99;

Real x200 = -x199;

Expand Down Expand Up @@ -1113,7 +1113,7 @@ Real rhs_eint(const burn_t& state,

Real x28 = std::exp((-4)*std::log(std::abs(x24)));

Real x29 = std::pow(x24, -3);
Real x29 = amrex::Math::powi<-3>(x24);

Real x30 = std::exp((-2)*std::log(std::abs(x24)));

Expand Down Expand Up @@ -1189,11 +1189,11 @@ Real rhs_eint(const burn_t& state,

Real x54 = ((x51)*(x51));

Real x55 = std::pow(x24, -5);
Real x55 = amrex::Math::powi<-5>(x24);

Real x56 = std::exp((-8)*std::log(std::abs(x24)));

Real x57 = std::pow(x24, -7);
Real x57 = amrex::Math::powi<-7>(x24);

Real x58 = std::exp((-6)*std::log(std::abs(x24)));

Expand Down

0 comments on commit cd5427f

Please sign in to comment.