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 3f97d38 commit 358861e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/iks006_nonlinear2DSolid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ using FEType = decltype(makeFE(basis, sk));
{
auto linSolver = Ikarus::LinearSolver(Ikarus::SolverTypeTag::sd_UmfPackLU);
NewtonRaphsonConfig<decltype(linSolver)> nrConfig{
.parameters = {.tol = tol_, .maxIter = 100},
.parameters = {.tol = 1e-8, .maxIter = 100},
.linearSolver = linSolver
};
Ikarus::NonlinearSolverFactory nrFactory(nrConfig);
Expand Down Expand Up @@ -234,11 +234,6 @@ using FEType = decltype(makeFE(basis, sk));
lc.nonlinearSolver().subscribeAll(nonLinearSolverObserver);

lc.subscribeAll(vtkWriter);
const auto& nonLinOp= lc.nonlinearSolver().nonLinearOperator();
std::cout << "Energy before: " << nonLinOp.value() << std::endl;
lc.run();
nonLinOp.update<0>();
std::cout << "Energy after: " << nonLinOp.value() << std::endl;

// Postprocessing
auto displacementFunction =
Expand Down

0 comments on commit 358861e

Please sign in to comment.