10 #ifndef MUELU_BLACKBOXPFACTORY_DECL_HPP
11 #define MUELU_BLACKBOXPFACTORY_DECL_HPP
19 #include "MueLu_PFactory.hpp"
24 namespace MueLuTests {
26 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
85 #undef MUELU_BLACKBOXPFACTORY_SHORT
151 const LO numDimensions,
const Array<LO> lFineNodesPerDir,
154 const Array<int> elementFlags,
const std::string stencilType,
155 const std::string blockStrategy,
const Array<LO> elementNodesPerDir,
156 const LO numNodesInElement,
const Array<GO> colGIDs,
162 void CollapseStencil(
const int type,
const int orientation,
const int collapseFlags[3],
167 const Array<LO> elementNodesPerDir,
const int collapseFlags[3],
168 const std::string stencilType,
Array<SC>& stencil)
const;
171 int* type,
LO& ind,
int* orientation)
const;
183 #define MUELU_BLACKBOXPFACTORY_SHORT
184 #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
MueLu::DefaultLocalOrdinal LocalOrdinal
virtual ~BlackBoxPFactory()
Destructor.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
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.
MueLu::DefaultScalar Scalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
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