From 5d7188ed144eb042a2d20603729b79d60b23cb8b Mon Sep 17 00:00:00 2001 From: Knut Morten Okstad Date: Thu, 8 Dec 2016 12:19:24 +0100 Subject: [PATCH] Changed: Register the primary solution field as "displacement" for the staggered solver, such that input files with initial condition setup for the monolithic version also can be used by the staggered solver without issues --- SIMDynElasticity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SIMDynElasticity.h b/SIMDynElasticity.h index 7c96e68..0f513b8 100644 --- a/SIMDynElasticity.h +++ b/SIMDynElasticity.h @@ -91,7 +91,8 @@ class SIMDynElasticity : public SIMElasticity bool ok = this->setMode(SIM::INIT); this->setQuadratureRule(Dim::opt.nGauss[0],true); - this->registerField("solution",dSim.getSolution()); + this->registerField(phOrder > 1 ? "solution" : "displacement", + dSim.getSolution()); return this->setInitialConditions() && ok; }