Skip to content
Snippets Groups Projects
Commit 66850bf5 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Rename: transfer_ -> transferOperators

parent fbb80bfb
Branches
No related tags found
No related merge requests found
...@@ -330,14 +330,16 @@ int main(int argc, char *argv[]) { ...@@ -330,14 +330,16 @@ int main(int argc, char *argv[]) {
linearIterationStep->setSmoother(linearPresmoother, linearPostsmoother); linearIterationStep->setSmoother(linearPresmoother, linearPostsmoother);
// {{{ Transfer operators // {{{ Transfer operators
std::vector<CompressedMultigridTransfer<VectorType> *> transfer_; std::vector<CompressedMultigridTransfer<VectorType> *>
transfer_.resize(refinements); transferOperators;
for (auto &x : transfer_) transferOperators.resize(refinements);
for (auto &x : transferOperators)
x = new CompressedMultigridTransfer<VectorType>; x = new CompressedMultigridTransfer<VectorType>;
TransferOperatorAssembler<GridType> transferOperatorAssembler(grid); TransferOperatorAssembler<GridType> transferOperatorAssembler(grid);
transferOperatorAssembler.assembleOperatorPointerHierarchy(transfer_); transferOperatorAssembler.assembleOperatorPointerHierarchy(
linearIterationStep->setTransferOperators(transfer_); transferOperators);
linearIterationStep->setTransferOperators(transferOperators);
// }}} // }}}
typedef GenericNonlinearGS<MyBlockProblemType> NonlinearSmootherType; typedef GenericNonlinearGS<MyBlockProblemType> NonlinearSmootherType;
...@@ -369,7 +371,7 @@ int main(int argc, char *argv[]) { ...@@ -369,7 +371,7 @@ int main(int argc, char *argv[]) {
delete linearBaseSolver; delete linearBaseSolver;
delete linearPresmoother; delete linearPresmoother;
delete linearPostsmoother; delete linearPostsmoother;
for (auto &x : transfer_) for (auto &x : transferOperators)
delete x; delete x;
delete linearIterationStep; delete linearIterationStep;
delete myBlockProblem; delete myBlockProblem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment