Skip to content

Commit

Permalink
Aktualisieren von iks006_nonlinear2DSolid.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rath3t authored May 27, 2024
1 parent 624d4eb commit bd4e995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iks006_nonlinear2DSolid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ using FEType = decltype(makeFE(basis, sk));
sparseAssembler.bind(Ikarus::AffordanceCollections::elastoStatics);

auto nonlinSolver = [&](){
if constexpr (SolverType::NewtonRaphson)
if constexpr (st==SolverType::NewtonRaphson)
{
auto linSolver = Ikarus::LinearSolver(Ikarus::SolverTypeTag::sd_UmfPackLU);
NewtonRaphsonConfig<decltype(linSolver)> nrConfig{
Expand All @@ -209,7 +209,7 @@ using FEType = decltype(makeFE(basis, sk));
Ikarus::NonlinearSolverFactory nrFactory(nrConfig);
return nrFactory.create(sparseAssembler);
}
else if constexpr (SolverType::TrustRegion)
else if constexpr (st==SolverType::TrustRegion)
{ TrustRegionConfig<> trConfig{
.parameters = {.verbosity = 1,
.maxIter = 30,
Expand Down

0 comments on commit bd4e995

Please sign in to comment.