Skip to content

Commit fe9ff90

Browse files
author
Matthias Fabry
committed
use abs cause non-even power used down the line
1 parent 6f603b7 commit fe9ff90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

star/private/hydro_rotation.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ subroutine eval_fp_ft(id, nz, xm, r, rho, aw, ft, fp, r_polar, r_equatorial, rep
642642
do j=1, s% nz
643643
! Compute fp, ft, re and rp using fits to the Roche geometry of a single star.
644644
! by this point in the code, w_div_w_crit_roche is set
645-
w = s% w_div_w_crit_roche(j)
645+
w = abs(s% w_div_w_crit_roche(j))
646646
w% d1val1 = 1d0
647647

648648
w2 = pow2(w)
@@ -701,7 +701,7 @@ subroutine eval_i_rot(s, k, r00, w_div_w_crit_roche, i_rot)
701701
i_rot% d1Array(i_lnR_00) = 2d0 * i_rot% val
702702
i_rot% d1Array(i_w_div_wc_00) = 0d0
703703
else
704-
w = w_div_w_crit_roche
704+
w = abs(w_div_w_crit_roche)
705705
w% d1val1 = 1d0
706706

707707
r = r00

0 commit comments

Comments
 (0)