Skip to content

Commit 87a51b6

Browse files
committed
minor phase separation cleanup
1 parent a130cfd commit 87a51b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

star/private/phase_separation.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ subroutine do_phase_separation(s, dt, ierr)
5454
integer :: k, k_bound, kstart, net_ic12, net_io16
5555
logical :: save_Skye_use_ion_offsets
5656

57-
s% eps_phase_separation(:) = 0d0
57+
s% eps_phase_separation(1:s%nz) = 0d0
5858

5959
if(s% phase(s% nz) < eos_phase_boundary) then
6060
s% crystal_core_boundary_mass = 0d0

star/private/profile_getval.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ subroutine getval_for_profile(s, c, k, val, int_flag, int_val)
15041504
end if
15051505

15061506
case (p_eps_phase_separation)
1507-
if (s% do_phase_separation_heating) val = s% eps_phase_separation(k)
1507+
if (s% do_phase_separation .and. s% do_phase_separation_heating) val = s% eps_phase_separation(k)
15081508

15091509
case (p_eps_WD_sedimentation)
15101510
if (s% do_element_diffusion) val = s% eps_WD_sedimentation(k)

0 commit comments

Comments
 (0)