Skip to content
Snippets Groups Projects
Commit b22e7c02 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[examples.elliptic.continuousgalerkin] update

parent f6354e05
No related branches found
No related tags found
No related merge requests found
......@@ -214,8 +214,8 @@ int main(int argc, char** argv)
info << "initializing matrix (of size " << testSpace.map().size() << "x" << ansatzSpace.map().size()
<< ") and vectors... " << std::flush;
timer.reset();
typedef ContainerFactory::SparseMatrixType MatrixType;
Dune::shared_ptr<MatrixType> systemMatrix = ContainerFactory::createSparseMatrix(testSpace, ansatzSpace);
typedef ContainerFactory::RowMajorSparseMatrixType MatrixType;
Dune::shared_ptr<MatrixType> systemMatrix = ContainerFactory::createRowMajorSparseMatrix(testSpace, ansatzSpace);
Dune::shared_ptr<VectorType> forceVector = ContainerFactory::createDenseVector(testSpace);
Dune::shared_ptr<VectorType> neumannVector = ContainerFactory::createDenseVector(testSpace);
Dune::shared_ptr<VectorType> rhsVector = ContainerFactory::createDenseVector(testSpace);
......@@ -264,8 +264,8 @@ int main(int argc, char** argv)
const double solverPrecision = paramTree.get("solver.precision", 1e-12);
info << " using '" << solverType << "'... " << std::flush;
timer.reset();
typedef typename Dune::Stuff::LA::Solver::Eigen::Interface<MatrixType> SolverType;
SolverType* solver = Dune::Stuff::LA::Solver::Eigen::create<MatrixType>(solverType);
typedef typename Dune::Stuff::LA::Solver::Eigen::Interface<MatrixType, VectorType> SolverType;
SolverType* solver = Dune::Stuff::LA::Solver::Eigen::create<MatrixType, VectorType>(solverType);
solver->init(*systemMatrix);
const bool success = solver->apply(*rhsVector, *solutionVector, solverMaxIter, solverPrecision);
if (!success)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment