Commit 38cf990c authored by Jianfeng Yan's avatar Jianfeng Yan
Browse files

REFAC: change NonLinearSolver::m_isSemiImplicit to false by default

parent c9f002ec
......@@ -186,6 +186,7 @@ FEMDeformableBodyModel::initialize()
// Create a non-linear solver and add to the scene
auto nlSolver = std::make_shared<NewtonSolver<SparseMatrixd>>();
nlSolver->setToSemiImplicit();
nlSolver->setLinearSolver(linSolver);
nlSolver->setSystem(nlSystem);
setSolver(nlSolver);
......
......@@ -174,6 +174,7 @@ ReducedStVK::initialize()
// create a non-linear solver and add to the scene
auto nlSolver = std::make_shared<NewtonSolver<Matrixd>>();
nlSolver->setToSemiImplicit();
// nlSolver->setLinearSolver(linSolver);
nlSolver->setMaxIterations(1);
nlSolver->setSystem(nlSystem);
......
......@@ -140,6 +140,6 @@ protected:
std::shared_ptr<NonLinearSystem<SystemMatrix>> m_nonLinearSystem; ///< System of non-linear equations
UpdateIterateType m_updateIterate; ///< Update iteration function
bool m_isSemiImplicit = true; ///> Semi-Implicit solver
bool m_isSemiImplicit = false; ///> Semi-Implicit solver
};
} // imstk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment