Skip to content

Commit 8991b27

Browse files
committed
fix: extend int_comp full reconstruction to surface_tension path
1 parent 3e3661c commit 8991b27

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/simulation/m_rhs.fpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,16 @@ contains
670670
& qR_rsx_vf, qR_rsy_vf, qR_rsz_vf, id)
671671
end if
672672
else
673-
if (all(Re_size == 0)) then
673+
if (int_comp > 0) then
674+
! Full reconstruction so THINC can access both cont and adv in one pass
675+
iv%beg = 1; iv%end = sys_size
676+
call s_reconstruct_cell_boundary_values(q_prim_qp%vf(1:sys_size), qL_rsx_vf, qL_rsy_vf, qL_rsz_vf, &
677+
& qR_rsx_vf, qR_rsy_vf, qR_rsz_vf, id)
678+
! Surface tension requires energy to be first-order; overwrite after THINC
679+
iv%beg = eqn_idx%E; iv%end = eqn_idx%E
680+
call s_reconstruct_cell_boundary_values_first_order(q_prim_qp%vf(eqn_idx%E), qL_rsx_vf, qL_rsy_vf, &
681+
& qL_rsz_vf, qR_rsx_vf, qR_rsy_vf, qR_rsz_vf, id)
682+
else if (all(Re_size == 0)) then
674683
iv%beg = 1; iv%end = eqn_idx%E - 1
675684
call s_reconstruct_cell_boundary_values(q_prim_qp%vf(iv%beg:iv%end), qL_rsx_vf, qL_rsy_vf, qL_rsz_vf, &
676685
& qR_rsx_vf, qR_rsy_vf, qR_rsz_vf, id)

0 commit comments

Comments
 (0)