Skip to content
Snippets Groups Projects
Commit 773884ad authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

[bugfix] h1SemiNorm matrix needs to be transfered to the master process, too.

[[Imported from SVN: r9771]]
parent aa3e7315
No related branches found
No related tags found
No related merge requests found
......@@ -118,13 +118,17 @@ setup(const GridType& grid,
LaplaceAssembler<GridType, typename BasisType::LocalFiniteElement, typename BasisType::LocalFiniteElement> laplaceStiffness;
typedef Dune::BCRSMatrix<Dune::FieldMatrix<double,1,1> > ScalarMatrixType;
ScalarMatrixType* A = new ScalarMatrixType;
ScalarMatrixType localA;
operatorAssembler.assemble(laplaceStiffness, *A);
operatorAssembler.assemble(laplaceStiffness, localA);
if (h1SemiNorm_)
delete h1SemiNorm_;
MatrixCommunicator<GUIndex, ScalarMatrixType> matrixComm(*guIndex_, 0);
ScalarMatrixType* A = new ScalarMatrixType(matrixComm.reduceAdd(localA));
h1SemiNorm_ = new H1SemiNorm<CorrectionType>(*A);
innerSolver_ = std::shared_ptr<LoopSolver<CorrectionType> >(new ::LoopSolver<CorrectionType>(mmgStep,
......
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