From 81c4c62cdc49e959bce937b91ce48ac4e08becde Mon Sep 17 00:00:00 2001 From: podlesny <podlesny@zedat.fu-berlin.de> Date: Fri, 13 Jul 2018 17:13:09 +0200 Subject: [PATCH] . --- src/cantorfaultnetworks/cantorconvergence.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cantorfaultnetworks/cantorconvergence.cc b/src/cantorfaultnetworks/cantorconvergence.cc index a6769fd..23c0f13 100644 --- a/src/cantorfaultnetworks/cantorconvergence.cc +++ b/src/cantorfaultnetworks/cantorconvergence.cc @@ -207,7 +207,7 @@ int main(int argc, char** argv) { try solutions[exactLevelIdx] = exactGlobalAssembler.getSol(); approxErrors[maxLevelIdx] = 0; - const DGBasis& exactBasis = exactGlobalAssembler.basis(); + std::shared_ptr<DGBasis> exactBasis = exactGlobalAssembler.basis(); EnergyNorm<MatrixType, VectorType> energyNorm(exactGlobalAssembler.matrix()); @@ -227,9 +227,9 @@ int main(int argc, char** argv) { try globalAssembler.solve(); 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]); if (i==maxLevelIdx) { -- GitLab