Skip to content

Commit

Permalink
fabs --> kokkos::abs
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoon committed Jun 24, 2024
1 parent 7856c7e commit 731e3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pks/flow/constitutive_relations/wrm/wrm_van_genuchten.hh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class WRMVanGenuchten {
double se = (s - sr_) / (1 - sr_);

double x = Kokkos::pow(se, 1.0 / m_);
if (fabs(1.0 - x) < FLOW_WRM_TOLERANCE) return 0.0;
if (fabs(x) < FLOW_WRM_TOLERANCE) return 0.0;
if (Kokkos::abs(1.0 - x) < FLOW_WRM_TOLERANCE) return 0.0;
if (Kokkos::abs(x) < FLOW_WRM_TOLERANCE) return 0.0;

double y = Kokkos::pow(1.0 - x, m_);
double dkdse;
Expand Down

0 comments on commit 731e3eb

Please sign in to comment.