Zoltan2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Zoltan2::SphynxProblem< Adapter > Class Template Reference

#include <Zoltan2_SphynxProblem.hpp>

Inheritance diagram for Zoltan2::SphynxProblem< Adapter >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::SphynxProblem< Adapter >:
Collaboration graph
[legend]

Public Types

using part_t = typename Adapter::part_t
 
using weight_t = typename Adapter::scalar_t
 
typedef Adapter::base_adapter_t base_adapter_t
 
- Public Types inherited from Zoltan2::PartitioningProblem< Adapter >
typedef Adapter::scalar_t scalar_t
 
typedef Adapter::gno_t gno_t
 
typedef Adapter::lno_t lno_t
 
typedef Adapter::part_t part_t
 
typedef Adapter::user_t user_t
 
typedef Adapter::base_adapter_t base_adapter_t
 

Public Member Functions

 SphynxProblem (Adapter *A, Teuchos::ParameterList *p, RCP< Teuchos::ParameterList > sphynxParams, const RCP< const Teuchos::Comm< int > > &comm)
 
 SphynxProblem (Adapter *A, ParameterList *p, RCP< Teuchos::ParameterList > sphynxParams)
 
 ~SphynxProblem ()
 
void createAlgorithm () override
 
void processAlgorithmName (const std::string &algorithm, const std::string &defString, const std::string &model, Environment &env, bool &removeSelfEdges, bool &isGraphType, bool &needConsecutiveGlobalIds) override
 
const PartitioningSolution< Adapter > & getSolution ()
 
- Public Member Functions inherited from Zoltan2::PartitioningProblem< Adapter >
 PartitioningProblem (Adapter *A, ParameterList *p, const RCP< const Teuchos::Comm< int > > &comm)
 Constructor where Teuchos communicator is specified.
 
 PartitioningProblem (Adapter *A, ParameterList *p)
 Constructor where communicator is the Teuchos default.
 
 ~PartitioningProblem ()
 Destructor.
 
void solve (bool updateInputData=true)
 Direct the problem to create a solution.
 
const PartitioningSolution< Adapter > & getSolution ()
 Get the solution to the problem.
 
void setPartSizes (int len, part_t *partIds, scalar_t *partSizes, bool makeCopy=true)
 Set or reset relative sizes for the parts that Zoltan2 will create.
 
void setPartSizesForCriteria (int criteria, int len, part_t *partIds, scalar_t *partSizes, bool makeCopy=true)
 Set or reset the relative sizes (per weight) for the parts that Zoltan2 will create.
 
- Public Member Functions inherited from Zoltan2::Problem< Adapter >
 Problem (const Adapter *input, ParameterList *params, const RCP< const Comm< int > > &comm)
 Constructor where Teuchos communicator is specified.
 
virtual ~Problem ()
 Destructor.
 
RCP< const Comm< int > > getComm ()
 Return the communicator used by the problem.
 
void resetParameters (ParameterList *params)
 Reset the list of parameters.
 
void printTimers () const
 Return the communicator passed to the problem.
 
const RCP< const Environment > & getEnvironment () const
 Get the current Environment. Useful for testing.
 
- Public Member Functions inherited from Zoltan2::ProblemRoot
virtual ~ProblemRoot ()
 
virtual RCP< const Comm< int > > getComm ()=0
 
virtual void solve (bool updateInputData=true)=0
 Method that creates a solution.
 

Additional Inherited Members

- Static Public Member Functions inherited from Zoltan2::PartitioningProblem< Adapter >
static void getValidParameters (ParameterList &pl)
 Set up validators specific to this Problem.
 
- Static Public Member Functions inherited from Zoltan2::Problem< Adapter >
static void getValidParameters (ParameterList &pl)
 
- Protected Types inherited from Zoltan2::Problem< Adapter >
typedef Adapter::base_adapter_t base_adapter_t
 
- Protected Member Functions inherited from Zoltan2::PartitioningProblem< Adapter >
void initializeProblem ()
 
virtual void processAlgorithmName (const std::string &algorithm, const std::string &defString, const std::string &model, Environment &env, bool &removeSelfEdges, bool &isGraphType, bool &needConsecutiveGlobalIds)
 
void createPartitioningProblem (bool newData)
 
virtual void createAlgorithm ()
 
- Protected Attributes inherited from Zoltan2::PartitioningProblem< Adapter >
RCP< PartitioningSolution< Adapter > > solution_
 
BaseAdapterType inputType_
 
modelFlag_t graphFlags_
 
modelFlag_t idFlags_
 
modelFlag_t coordFlags_
 
std::string algName_
 
int numberOfWeights_
 
ArrayRCP< ArrayRCP< part_t > > partIds_
 
ArrayRCP< ArrayRCP< scalar_t > > partSizes_
 
int numberOfCriteria_
 
ArrayRCP< int > levelNumberParts_
 
bool hierarchical_
 
- Protected Attributes inherited from Zoltan2::Problem< Adapter >
RCP< const Adapter > inputAdapter_
 
RCP< const base_adapter_tbaseInputAdapter_
 
RCP< Algorithm< Adapter > > algorithm_
 
RCP< ParameterList > params_
 
RCP< const Comm< int > > comm_
 
RCP< Environmentenv_
 
RCP< const EnvironmentenvConst_
 
RCP< TimerManagertimer_
 

Detailed Description

template<typename Adapter>
class Zoltan2::SphynxProblem< Adapter >

Definition at line 126 of file Zoltan2_SphynxProblem.hpp.

Member Typedef Documentation

◆ part_t

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::part_t = typename Adapter::part_t

Definition at line 131 of file Zoltan2_SphynxProblem.hpp.

◆ weight_t

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::weight_t = typename Adapter::scalar_t

Definition at line 132 of file Zoltan2_SphynxProblem.hpp.

◆ base_adapter_t

template<typename Adapter >
typedef Adapter::base_adapter_t Zoltan2::SphynxProblem< Adapter >::base_adapter_t

Definition at line 133 of file Zoltan2_SphynxProblem.hpp.

Constructor & Destructor Documentation

◆ SphynxProblem() [1/2]

template<typename Adapter >
Zoltan2::SphynxProblem< Adapter >::SphynxProblem ( Adapter *  A,
Teuchos::ParameterList *  p,
RCP< Teuchos::ParameterList >  sphynxParams,
const RCP< const Teuchos::Comm< int > > &  comm 
)
inline

Definition at line 140 of file Zoltan2_SphynxProblem.hpp.

◆ SphynxProblem() [2/2]

template<typename Adapter >
Zoltan2::SphynxProblem< Adapter >::SphynxProblem ( Adapter *  A,
ParameterList *  p,
RCP< Teuchos::ParameterList >  sphynxParams 
)
inline

Definition at line 179 of file Zoltan2_SphynxProblem.hpp.

◆ ~SphynxProblem()

template<typename Adapter >
Zoltan2::SphynxProblem< Adapter >::~SphynxProblem ( )
inline

Definition at line 184 of file Zoltan2_SphynxProblem.hpp.

Member Function Documentation

◆ createAlgorithm()

template<typename Adapter >
void Zoltan2::SphynxProblem< Adapter >::createAlgorithm
overridevirtual

Reimplemented from Zoltan2::PartitioningProblem< Adapter >.

Definition at line 228 of file Zoltan2_SphynxProblem.hpp.

◆ processAlgorithmName()

template<typename Adapter >
void Zoltan2::SphynxProblem< Adapter >::processAlgorithmName ( const std::string &  algorithm,
const std::string &  defString,
const std::string &  model,
Environment env,
bool &  removeSelfEdges,
bool &  isGraphType,
bool &  needConsecutiveGlobalIds 
)
overridevirtual

Reimplemented from Zoltan2::PartitioningProblem< Adapter >.

Definition at line 219 of file Zoltan2_SphynxProblem.hpp.

◆ getSolution()

template<typename Adapter >
const PartitioningSolution< Adapter > & Zoltan2::SphynxProblem< Adapter >::getSolution ( )
inline

Definition at line 199 of file Zoltan2_SphynxProblem.hpp.


The documentation for this class was generated from the following file: