Skip to content
Snippets Groups Projects
Commit 3a9ec835 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Rename DiscFuncType to VectorType

parent 24992ad6
Branches
No related tags found
No related merge requests found
#include <dune/solvers/transferoperators/compressedmultigridtransfer.hh> #include <dune/solvers/transferoperators/compressedmultigridtransfer.hh>
template <class DiscFuncType> template <class VectorType>
void MandelObstacleRestrictor<DiscFuncType>:: void MandelObstacleRestrictor<VectorType>::
restrict(const std::vector<BoxConstraint<typename DiscFuncType::field_type,blocksize> >&f, restrict(const std::vector<BoxConstraint<field_type, blocksize> >&f,
std::vector<BoxConstraint<typename DiscFuncType::field_type,blocksize> > &t, std::vector<BoxConstraint<field_type, blocksize> > &t,
const Dune::BitSetVector<blocksize>& fHasObstacle, const Dune::BitSetVector<blocksize>& fHasObstacle,
const Dune::BitSetVector<blocksize>& tHasObstacle, const Dune::BitSetVector<blocksize>& tHasObstacle,
const MultigridTransfer<DiscFuncType>& transfer, const MultigridTransfer<VectorType>& transfer,
const Dune::BitSetVector<blocksize>& critical) const Dune::BitSetVector<blocksize>& critical)
{ {
if (!(dynamic_cast<const CompressedMultigridTransfer<DiscFuncType>*>(&transfer))) if (!(dynamic_cast<const CompressedMultigridTransfer<VectorType>*>(&transfer)))
DUNE_THROW(Dune::NotImplemented, "Implementation assumes transfer to be of type CompressedMultigridTransfer!"); DUNE_THROW(Dune::NotImplemented, "Implementation assumes transfer to be of type CompressedMultigridTransfer!");
const Dune::BCRSMatrix<Dune::FieldMatrix<field_type, 1, 1> >& transferMat = const Dune::BCRSMatrix<Dune::FieldMatrix<field_type, 1, 1> >& transferMat =
dynamic_cast<const CompressedMultigridTransfer<DiscFuncType>*>(&transfer)->getMatrix(); dynamic_cast<const CompressedMultigridTransfer<VectorType>*>(&transfer)->getMatrix();
t.resize(transferMat.M()); t.resize(transferMat.M());
for (size_t i=0; i<t.size(); i++) for (size_t i=0; i<t.size(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment