Skip to content

Commit 845f79c

Browse files
authored
Merge pull request #768 from MESAHub/adjust_J_q-bug
fix bug in adjust_mass.f90
2 parents c1a5eef + f919604 commit 845f79c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

star/private/adjust_mass.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,10 @@ subroutine adjust_J_lost(s, k_below_just_added, starting_j_rot_surf, ierr)
14991499
ierr = 0
15001500

15011501
mass_lost = s% mstar_old - s% mstar
1502-
if (mass_lost <= 0) return
1502+
if (mass_lost <= 0) then
1503+
s% adjust_J_q = 1d0 ! nothing to do
1504+
return
1505+
end if
15031506

15041507
! can use a different j to account for things like wind braking
15051508
if (s% use_other_j_for_adjust_J_lost) then

0 commit comments

Comments
 (0)