From 66850bf5776215d87df823e527254d3ac5d0784f Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Fri, 16 Dec 2011 18:35:07 +0100 Subject: [PATCH] Rename: transfer_ -> transferOperators --- src/one-body-sample.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 2455bd5b..8877245a 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -330,14 +330,16 @@ int main(int argc, char *argv[]) { linearIterationStep->setSmoother(linearPresmoother, linearPostsmoother); // {{{ Transfer operators - std::vector<CompressedMultigridTransfer<VectorType> *> transfer_; - transfer_.resize(refinements); - for (auto &x : transfer_) + std::vector<CompressedMultigridTransfer<VectorType> *> + transferOperators; + transferOperators.resize(refinements); + for (auto &x : transferOperators) x = new CompressedMultigridTransfer<VectorType>; TransferOperatorAssembler<GridType> transferOperatorAssembler(grid); - transferOperatorAssembler.assembleOperatorPointerHierarchy(transfer_); - linearIterationStep->setTransferOperators(transfer_); + transferOperatorAssembler.assembleOperatorPointerHierarchy( + transferOperators); + linearIterationStep->setTransferOperators(transferOperators); // }}} typedef GenericNonlinearGS<MyBlockProblemType> NonlinearSmootherType; @@ -369,7 +371,7 @@ int main(int argc, char *argv[]) { delete linearBaseSolver; delete linearPresmoother; delete linearPostsmoother; - for (auto &x : transfer_) + for (auto &x : transferOperators) delete x; delete linearIterationStep; delete myBlockProblem; -- GitLab