53 #ifndef MUELU_AGGREGATIONEXPORTFACTORY_DECL_HPP_ 54 #define MUELU_AGGREGATIONEXPORTFACTORY_DECL_HPP_ 56 #include <Xpetra_Matrix_fwd.hpp> 57 #include <Xpetra_CrsMatrixWrap_fwd.hpp> 61 #include "MueLu_VisualizationHelpers.hpp" 107 template <
class Scalar =
double,
class LocalOrdinal =
int,
class GlobalOrdinal = LocalOrdinal,
class Node = KokkosClassic::DefaultNode::DefaultNodeType>
108 class AggregationExportFactory :
public TwoLevelFactoryBase,
public VisualizationHelpers<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
109 #undef MUELU_AGGREGATIONEXPORTFACTORY_SHORT 142 void doJacksPlus_(std::vector<int>& vertices, std::vector<int>& geomSizes)
const;
143 void doConvexHulls(std::vector<int>& vertices, std::vector<int>& geomSizes)
const;
144 #ifdef HAVE_MUELU_CGAL 145 void doAlphaHulls_(std::vector<int>& vertices, std::vector<int>& geomSizes)
const;
146 void doAlphaHulls2D_(std::vector<int>& vertices, std::vector<int>& geomSizes)
const;
147 void doAlphaHulls3D_(std::vector<int>& vertices, std::vector<int>& geomSizes)
const;
149 void doGraphEdges_(std::ofstream& fout, Teuchos::RCP<Matrix>& A, Teuchos::RCP<GraphBase>& G,
bool fine,
int dofs)
const;
152 void writeFile_(std::ofstream& fout, std::string styleName, std::vector<int>& vertices, std::vector<int>& geomSizes)
const;
154 void writePVTU_(std::ofstream& pvtu, std::string baseFname,
int numProcs)
const;
164 mutable Teuchos::ArrayRCP<const double>
cx_;
165 mutable Teuchos::ArrayRCP<const double>
cy_;
166 mutable Teuchos::ArrayRCP<const double>
cz_;
182 #define MUELU_AGGREGATIONEXPORTFACTORY_SHORT
void doAlphaHulls3D_(std::vector< int > &vertices, std::vector< int > &geomSizes) const
std::vector< bool > isRoot_
Teuchos::ArrayRCP< const double > cz_
static const int CONTRAST_1_
void doAlphaHulls_(std::vector< int > &vertices, std::vector< int > &geomSizes) const
void doConvexHulls(std::vector< int > &vertices, std::vector< int > &geomSizes) const
Namespace for MueLu classes and methods.
void doGraphEdges_(std::ofstream &fout, Teuchos::RCP< Matrix > &A, Teuchos::RCP< GraphBase > &G, bool fine, int dofs) const
void writeFile_(std::ofstream &fout, std::string styleName, std::vector< int > &vertices, std::vector< int > &geomSizes) const
Teuchos::ArrayRCP< LocalOrdinal > aggSizes_
Teuchos::ArrayRCP< const double > cy_
static const int CONTRAST_3_
static const int CONTRAST_2_
Class that holds all level-specific information.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Teuchos::ArrayRCP< const double > xCoords_
void writePVTU_(std::ofstream &pvtu, std::string baseFname, int numProcs) const
Teuchos::ArrayRCP< const double > cx_
Teuchos::ArrayRCP< LocalOrdinal > vertex2AggId_
virtual ~AggregationExportFactory()
Destructor.
Teuchos::RCP< const Map > nodeMapCoarse_
Teuchos::ArrayRCP< const double > zCoords_
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Teuchos::RCP< const Map > nodeMap_
void doJacksPlus_(std::vector< int > &vertices, std::vector< int > &geomSizes) const
Teuchos::ArrayRCP< const double > yCoords_
AggregationExportFactory()
Constructor.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
void doAlphaHulls2D_(std::vector< int > &vertices, std::vector< int > &geomSizes) const
void buildColormap_() const