Skip to content

Commit 1ea6abd

Browse files
authored
update star dxh star pointer for solver when editing lnR (#1115)
Copy the reconstructed change in lnR to dxh_lnR so the radius equation evaluates the same displacement as the solver state.
1 parent 8baceed commit 1ea6abd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎star/private/solver_support.f90‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ subroutine edit_lnR(s, xh_start, dx)
15331533
vol00 = volp1 + cell_vol
15341534
s% lnR(k) = log(vol00/four_thirds_pi)/3
15351535
dx(s% i_lnR,k) = s% lnR(k) - xh_start(s% i_lnR,k)
1536+
s% dxh_lnR(k) = dx(s% i_lnR,k)
15361537
end do
15371538
call edit_dlnR_dt_above_k_below_just_added(s, xh_start)
15381539
end subroutine edit_lnR

0 commit comments

Comments
 (0)