Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Source/NavierStokes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1812,9 +1812,15 @@ NavierStokes::reflux ()
}
}

//
// The viscous register holds the flux of the equation that was solved:
// only RhoInverse_Laplacian_S (rho dS/dt = div beta grad S, e.g. Temp)
// needs the increment divided by rho. Laplacian_S tracers carry no rho.
//
for (int istate = AMREX_SPACEDIM; istate < NUM_STATE; istate++)
{
if (advectionType[istate] == NonConservative)
if (advectionType[istate] == NonConservative &&
diffusionType[istate] == RhoInverse_Laplacian_S)
{
MultiFab::Divide(Ssync,Rh,0,istate-AMREX_SPACEDIM,1,0);
}
Expand Down
Loading