Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros
Zoltan2_ComparisonHelper.hpp File Reference

Store and compare solution sets from different problems. More...

#include "Zoltan2_TestHelpers.hpp"
#include "Zoltan2_MetricAnalyzer.hpp"
#include <Zoltan2_Typedefs.hpp>
#include <Zoltan2_EvaluateFactory.hpp>
#include <Zoltan2_ProblemFactory.hpp>
#include <AdapterForTests.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_Time.hpp>
#include <sstream>
#include <string>
#include <map>
#include <iostream>
Include dependency graph for Zoltan2_ComparisonHelper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ComparisonSource
 A class used to save problem solutions and timers. More...
 
class  ComparisonHelper
 A class for comparing solutions, metrics, and timing data of Zoltan2 problems. More...
 

Macros

#define GET_PROBLEM_PARTS(adapterClass)
 
#define LOAD_METRIC_INFO(adapterClass, metricAnalyzerClass)
 
#define LOAD_METRIC_INFO_PARTITIONING(adapterClass)   LOAD_METRIC_INFO(adapterClass, MetricAnalyzerEvaluatePartition<adapterClass>)
 
#define LOAD_METRIC_INFO_ORDERING(adapterClass)   LOAD_METRIC_INFO(adapterClass, MetricAnalyzerEvaluateOrdering<adapterClass>)
 

Detailed Description

Store and compare solution sets from different problems.

Definition in file Zoltan2_ComparisonHelper.hpp.

Macro Definition Documentation

#define GET_PROBLEM_PARTS (   adapterClass)
Value:
return (rcp_dynamic_cast<PartitioningProblem<adapterClass>>( \
problemFactory->getProblem()))->getSolution().getPartListView();
PartitioningProblem sets up partitioning problems for the user.
#define LOAD_METRIC_INFO (   adapterClass,
  metricAnalyzerClass 
)
Value:
RCP<EvaluateBaseClass<adapterClass>> pCast = \
rcp_dynamic_cast<EvaluateBaseClass<adapterClass>>(evaluateFactory->getEvaluateClass()); \
if(pCast == Teuchos::null) throw std::logic_error( \
"Bad evaluate class cast in loadMetricInfo!" ); \
metricAnalyzerClass analyzer(pCast); \
analyzer.LoadMetricInfo(metricInfo, metricsPlist.sublist("Metrics"));
#define LOAD_METRIC_INFO_PARTITIONING (   adapterClass)    LOAD_METRIC_INFO(adapterClass, MetricAnalyzerEvaluatePartition<adapterClass>)
#define LOAD_METRIC_INFO_ORDERING (   adapterClass)    LOAD_METRIC_INFO(adapterClass, MetricAnalyzerEvaluateOrdering<adapterClass>)