Skip to content

Commit

Permalink
Aktualisieren von iks003_incompressibleLinearElasticity.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rath3t authored May 27, 2024
1 parent 358861e commit 0f8dc82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/iks003_incompressibleLinearElasticity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ int main(int argc, char** argv) {

auto& K = sparseFlatAssembler.matrix();
auto& R = sparseFlatAssembler.vector();
Eigen::SparseLU<decltype(K)> ld;
ld.compute(K);
if (ld.info() != Eigen::Success)
Eigen::SparseLU solver(K);

if (solver.info() != Eigen::Success)
DUNE_THROW(Dune::MathError, "Failed Compute");

d -= sparseFlatAssembler.createFullVector(ld.solve(R));
if (ld.info() != Eigen::Success)
d -= sparseFlatAssembler.createFullVector(solver.solve(R));
if (solver.info() != Eigen::Success)
DUNE_THROW(Dune::MathError, "Failed Solve");

/// Postprocess
Expand Down

0 comments on commit 0f8dc82

Please sign in to comment.