Skip to content

Commit

Permalink
Fix fillpatch tracer (AMReX-Fluids#95)
Browse files Browse the repository at this point in the history
for ntrac>1
  • Loading branch information
cgilet authored Apr 3, 2024
1 parent 3c02cad commit 069fd36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/boundary_conditions/incflo_fillpatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void incflo::fillpatch_tracer (int lev, Real time, MultiFab& tracer, int ng)
FillPatchSingleLevel(tracer, IntVect(ng), time,
{&(m_leveldata[lev]->tracer_o),
&(m_leveldata[lev]->tracer)},
{m_t_old[lev], m_t_new[lev]}, 0, 0, 1, geom[lev],
{m_t_old[lev], m_t_new[lev]}, 0, 0, m_ntrac, geom[lev],
physbc, 0);
} else {
const auto& bcrec = get_tracer_bcrec();
Expand Down
5 changes: 2 additions & 3 deletions src/incflo_apply_corrector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void incflo::ApplyCorrector()
}
}

// **********************************************************************************************
// *************************************************************************************
// Compute the MAC-projected velocities at all levels
// *************************************************************************************
bool include_pressure_gradient = !(m_use_mac_phi_in_godunov);
Expand All @@ -131,9 +131,8 @@ void incflo::ApplyCorrector()
compute_MAC_projected_velocities(get_velocity_new_const(), get_density_new_const(),
AMREX_D_DECL(GetVecOfPtrs(u_mac), GetVecOfPtrs(v_mac),
GetVecOfPtrs(w_mac)), GetVecOfPtrs(vel_forces), new_time);
// **********************************************************************************************
// *************************************************************************************
// Compute the explicit "new" advective terms R_u^(n+1,*), R_r^(n+1,*) and R_t^(n+1,*)
// Note that "get_conv_tracer_new" returns div(rho u tracer)
// *************************************************************************************
compute_convective_term(get_conv_velocity_new(), get_conv_density_new(), get_conv_tracer_new(),
get_velocity_new_const(), get_density_new_const(), get_tracer_new_const(),
Expand Down

0 comments on commit 069fd36

Please sign in to comment.