#include <UserInputForTests.hpp>
#include <Zoltan2_Typedefs.hpp>
#include <AdapterForTests.hpp>
#include <Zoltan2_ComparisonHelper.hpp>
#include <Zoltan2_MetricAnalyzer.hpp>
#include <Zoltan2_ProblemFactory.hpp>
#include <Zoltan2_EvaluateFactory.hpp>
#include <Zoltan2_BasicIdentifierAdapter.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <Zoltan2_XpetraCrsMatrixAdapter.hpp>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_Parameters.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_XMLObject.hpp>
#include <Teuchos_FileInputSource.hpp>
#include <sstream>
#include <string>
#include <map>
#include <iostream>
#include <queue>
Go to the source code of this file.
|
void | xmlToModelPList (const Teuchos::XMLObject &xml, Teuchos::ParameterList &plist) |
|
bool | getParameterLists (const string &inputFileName, queue< ParameterList > &problems, queue< ParameterList > &comparisons, const RCP< const Teuchos::Comm< int > > &comm) |
|
bool | analyzeMetrics (RCP< EvaluateFactory > evaluateFactory, std::ostringstream &msg, const ParameterList &problem_parameters) |
|
LocalOrderingSolution< zlno_t > * | getLocalOrderingSolution (RCP< ProblemFactory > problemFactory) |
|
const zpart_t * | getPartListView (RCP< ProblemFactory > problemFactory) |
|
void | getIDsView (RCP< AdapterFactory > adapterFactory, const zgno_t *&Ids) |
|
bool | run (const UserInputForTests &uinput, const ParameterList &problem_parameters, bool bHasComparisons, RCP< ComparisonHelper > &comparison_helper, const RCP< const Teuchos::Comm< int > > &comm) |
|
bool | mainExecute (int narg, char *arg[], RCP< const Comm< int > > &comm) |
|
int | main (int narg, char *arg[]) |
|
#define ERRMSG |
( |
|
msg | ) |
if (rank == 0){ std::cerr << "FAIL: " << msg << std::endl; } |
#define EXC_ERRMSG |
( |
|
msg, |
|
|
|
e |
|
) |
| if (rank==0){ std::cerr << "FAIL: " << msg << std::endl << e.what() << std::endl;} |
#define ANALYZE_METRICS |
( |
|
adapterClass, |
|
|
|
metricAnalyzerClass |
|
) |
| |
Value:RCP<EvaluateBaseClass<adapterClass>> pCast = \
evaluateFactory->getEvaluateClass()); \
if(pCast == Teuchos::null) throw std::logic_error( \
metricAnalyzerClass analyzer(pCast); \
return analyzer.analyzeMetrics( \
problem_parameters.sublist("Metrics"), msg);
bool analyzeMetrics(RCP< EvaluateFactory > evaluateFactory, std::ostringstream &msg, const ParameterList &problem_parameters)
#define ANALYZE_METRICS_PARTITIONING |
( |
|
adapterClass | ) |
|
Value:
#define ANALYZE_METRICS(adapterClass, metricAnalyzerClass)
#define ANALYZE_METRICS_ORDERING |
( |
|
adapterClass | ) |
|
Value:
#define ANALYZE_METRICS(adapterClass, metricAnalyzerClass)
#define GET_LOCAL_ORDERING |
( |
|
adapterClass | ) |
|
Value:
problemFactory->getProblem()))->getLocalOrderingSolution();
OrderingProblem sets up ordering problems for the user.
#define GET_PROBLEM_PARTS |
( |
|
adapterClass | ) |
|
Value:
problemFactory->getProblem()))->getSolution().getPartListView();
PartitioningProblem sets up partitioning problems for the user.
#define GET_IDS_VIEW |
( |
|
adapterClass | ) |
|
Value:return dynamic_cast<adapterClass*>( \
adapterFactory->getMainAdapter())->
getIDsView(Ids);
void getIDsView(RCP< AdapterFactory > adapterFactory, const zgno_t *&Ids)
void xmlToModelPList |
( |
const Teuchos::XMLObject & |
xml, |
|
|
Teuchos::ParameterList & |
plist |
|
) |
| |
bool getParameterLists |
( |
const string & |
inputFileName, |
|
|
queue< ParameterList > & |
problems, |
|
|
queue< ParameterList > & |
comparisons, |
|
|
const RCP< const Teuchos::Comm< int > > & |
comm |
|
) |
| |
bool analyzeMetrics |
( |
RCP< EvaluateFactory > |
evaluateFactory, |
|
|
std::ostringstream & |
msg, |
|
|
const ParameterList & |
problem_parameters |
|
) |
| |
bool run |
( |
const UserInputForTests & |
uinput, |
|
|
const ParameterList & |
problem_parameters, |
|
|
bool |
bHasComparisons, |
|
|
RCP< ComparisonHelper > & |
comparison_helper, |
|
|
const RCP< const Teuchos::Comm< int > > & |
comm |
|
) |
| |
bool mainExecute |
( |
int |
narg, |
|
|
char * |
arg[], |
|
|
RCP< const Comm< int > > & |
comm |
|
) |
| |
int main |
( |
int |
narg, |
|
|
char * |
arg[] |
|
) |
| |