diff --git a/src/elasticity/solvers/IterativePressureSolver.cpp b/src/elasticity/solvers/IterativePressureSolver.cpp index 0a27fec408ca2b5cef3cb90341a72e2dd0d5e5d5..01b48e186f6f0307c6d9850309bb18980c3f8b23 100644 --- a/src/elasticity/solvers/IterativePressureSolver.cpp +++ b/src/elasticity/solvers/IterativePressureSolver.cpp @@ -46,9 +46,11 @@ bool IterativePressureSolver::Method(IElasticity &assemble, Vector &u) { } bool IterativePressureSolver::Step(IElasticity &assemble, Vector &u) { + bool prestress{false}; + Config::Get("WithPrestress", prestress); std::string activeDeformation; Config::Get("activeDeformation", activeDeformation); - if (activeDeformation != "") { + if (activeDeformation != "" && prestress == false) { assemble.UpdateStretch(u); } iteration.NextTimeStep();