Skip to content
Snippets Groups Projects
Commit 85042efa authored by graeser's avatar graeser Committed by graeser
Browse files

Allow to set transfer operators from vector of shared_ptr's.

Currently the MultigridStep will _not_ share ownership afterwards.

[[Imported from SVN: r12458]]
parent 2b43402e
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,20 @@
mgTransfer_[j] = transfer[j];
}
/**
* \brief Set transfer operator hierarchy from vector of shared_ptr's.
*
* Be care full: The Multigrid step does currently not share ownership
* afterwards. This may change in the future.
*/
template <class DerivedTransfer>
void setTransferOperators(const std::vector<typename Dune::shared_ptr<DerivedTransfer> >& transfer)
{
mgTransfer_.resize(transfer.size());
for(size_t j=0; j<transfer.size(); ++j)
mgTransfer_[j] = transfer[j].get();
}
virtual void iterate();
virtual void nestedIteration();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment