Skip to content
Snippets Groups Projects
Commit 81c4c62c authored by podlesny's avatar podlesny
Browse files

.

parent beccdc27
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ int main(int argc, char** argv) { try ...@@ -207,7 +207,7 @@ int main(int argc, char** argv) { try
solutions[exactLevelIdx] = exactGlobalAssembler.getSol(); solutions[exactLevelIdx] = exactGlobalAssembler.getSol();
approxErrors[maxLevelIdx] = 0; approxErrors[maxLevelIdx] = 0;
const DGBasis& exactBasis = exactGlobalAssembler.basis(); std::shared_ptr<DGBasis> exactBasis = exactGlobalAssembler.basis();
EnergyNorm<MatrixType, VectorType> energyNorm(exactGlobalAssembler.matrix()); EnergyNorm<MatrixType, VectorType> energyNorm(exactGlobalAssembler.matrix());
...@@ -227,9 +227,9 @@ int main(int argc, char** argv) { try ...@@ -227,9 +227,9 @@ int main(int argc, char** argv) { try
globalAssembler.solve(); globalAssembler.solve();
const VectorType& sol = globalAssembler.getSol(); const VectorType& sol = globalAssembler.getSol();
const DGBasis& basis = globalAssembler.basis(); std::shared_ptr<DGBasis> basis = globalAssembler.basis();
DGMGTransfer<DGBasis> levelTransfer(basis, exactBasis); DGMGTransfer<DGBasis> levelTransfer(*basis, *exactBasis);
levelTransfer.prolong(sol, solutions[i]); levelTransfer.prolong(sol, solutions[i]);
if (i==maxLevelIdx) { if (i==maxLevelIdx) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment