Skip to content

Commit 111a42c

Browse files
authored
MAC projector with Robin BCs needs initialization every time. The (#125)
underlying solver, (EB)MLABecLaplacian, is not safe for reuse with Robin BCs.
1 parent 0584130 commit 111a42c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Projections/hydro_MacProjector.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ MacProjector::setLevelBC (int amrlev, const MultiFab* levelbcdata, const MultiFa
212212
"setDomainBC must be called before setLevelBC");
213213
m_linop->setLevelBC(amrlev, levelbcdata, robin_a, robin_b, robin_f);
214214
m_needs_level_bcs[amrlev] = false;
215+
if (robin_a) {
216+
m_needs_init = true; // Solver is not safe for reuse with Robin BC
217+
}
215218
}
216219

217220

218-
219221
void
220222
MacProjector::project (Real reltol, Real atol)
221223
{

0 commit comments

Comments
 (0)