46 #ifndef MUELU_BLACKBOXPFACTORY_DECL_HPP
47 #define MUELU_BLACKBOXPFACTORY_DECL_HPP
55 #include "MueLu_PFactory.hpp"
60 namespace MueLuTests {
62 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
116 template <
class Scalar =
double,
class LocalOrdinal =
int,
class GlobalOrdinal = LocalOrdinal,
class Node = KokkosClassic::DefaultNode::DefaultNodeType>
118 #undef MUELU_BLACKBOXPFACTORY_SHORT
186 const LO numDimensions,
const Array<LO> lFineNodesPerDir,
189 const Array<int> elementFlags,
const std::string stencilType,
190 const std::string blockStrategy,
const Array<LO> elementNodesPerDir,
191 const LO numNodesInElement,
const Array<GO> colGIDs,
197 void CollapseStencil(
const int type,
const int orientation,
const int collapseFlags[3],
202 const Array<LO> elementNodesPerDir,
const int collapseFlags[3],
203 const std::string stencilType,
Array<SC>& stencil)
const;
206 int* type,
LO& ind,
int* orientation)
const;
218 #define MUELU_BLACKBOXPFACTORY_SHORT
219 #endif // MUELU_BLACKBOXPFACTORY_DECL_HPP
void GetGeometricData(RCP< Xpetra::MultiVector< typename Teuchos::ScalarTraits< Scalar >::magnitudeType, LO, GO, NO > > &coordinates, const Array< LO > coarseRate, const Array< GO > gFineNodesPerDir, const Array< LO > lFineNodesPerDir, const LO BlkSize, Array< GO > &gIndices, Array< LO > &myOffset, Array< bool > &ghostInterface, Array< LO > &endRate, Array< GO > &gCoarseNodesPerDir, Array< LO > &lCoarseNodesPerDir, Array< LO > &glCoarseNodesPerDir, Array< GO > &ghostGIDs, Array< GO > &coarseNodesGIDs, Array< GO > &colGIDs, GO &gNumCoarseNodes, LO &lNumCoarseNodes, ArrayRCP< Array< typename Teuchos::ScalarTraits< Scalar >::magnitudeType > > coarseNodes, Array< int > &boundaryFlags, RCP< NodesIDs > ghostedCoarseNodes) const
virtual ~BlackBoxPFactory()
Destructor.
BlackBoxPFactory()
Constructor.
void GetNodeInfo(const LO ie, const LO je, const LO ke, const Array< LO > elementNodesPerDir, int *type, LO &ind, int *orientation) const
void ComputeLocalEntries(const RCP< const Matrix > &Aghost, const Array< LO > coarseRate, const Array< LO > endRate, const LO BlkSize, const Array< LO > elemInds, const Array< LO > lCoarseElementsPerDir, const LO numDimensions, const Array< LO > lFineNodesPerDir, const Array< GO > gFineNodesPerDir, const Array< GO > gIndices, const Array< LO > lCoarseNodesPerDir, const Array< bool > ghostInterface, const Array< int > elementFlags, const std::string stencilType, const std::string blockStrategy, const Array< LO > elementNodesPerDir, const LO numNodesInElement, const Array< GO > colGIDs, Teuchos::SerialDenseMatrix< LO, SC > &Pi, Teuchos::SerialDenseMatrix< LO, SC > &Pf, Teuchos::SerialDenseMatrix< LO, SC > &Pe, Array< LO > &dofType, Array< LO > &lDofInd) const
Prolongator factory performing geometric coarsening.
Class that holds all level-specific information.
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
void FormatStencil(const LO BlkSize, const Array< bool > ghostInterface, const LO ie, const LO je, const LO ke, const ArrayView< const SC > rowValues, const Array< LO > elementNodesPerDir, const int collapseFlags[3], const std::string stencilType, Array< SC > &stencil) const
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
void CollapseStencil(const int type, const int orientation, const int collapseFlags[3], Array< SC > &stencil) const
std::vector< GO > colInds
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
Factory that provides an interface for a concrete implementation of a prolongation operator...
std::vector< T >::iterator iterator
void sh_sort_permute(const typename Teuchos::Array< LocalOrdinal >::iterator &first1, const typename Teuchos::Array< LocalOrdinal >::iterator &last1, const typename Teuchos::Array< LocalOrdinal >::iterator &first2, const typename Teuchos::Array< LocalOrdinal >::iterator &last2) const