fixed: make sure to clear out old blocks in DomainDecomposition
if not, we end up with bad data in adaptive simulations since the DomainDecomposition object is reused
This commit is contained in:
parent
18d3d976e2
commit
ffb7db391e
@ -897,6 +897,7 @@ bool DomainDecomposition::setup(const ProcessAdm& adm, const SIMbase& sim)
|
||||
if (sim.getSolParams() && sim.getSolParams()->getNoBlocks() > 1) {
|
||||
IFEM::cout << "\tEstablishing local block equation numbers" << std::endl;
|
||||
const LinSolParams& solParams = *sim.getSolParams();
|
||||
blocks.clear();
|
||||
blocks.resize(solParams.getNoBlocks()+1);
|
||||
|
||||
// Find local equations for each block
|
||||
|
Loading…
Reference in New Issue
Block a user