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

Generate Adapter for testing purposes. More...

#include <Zoltan2_Parameters.hpp>
#include <UserInputForTests.hpp>
#include <Zoltan2_PartitioningProblem.hpp>
#include <Zoltan2_EvaluatePartition.hpp>
#include <Zoltan2_BasicIdentifierAdapter.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <Zoltan2_XpetraCrsMatrixAdapter.hpp>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_BasicVectorAdapter.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Teuchos_XMLObject.hpp>
#include <Teuchos_FileInputSource.hpp>
#include <Tpetra_MultiVector.hpp>
#include <Tpetra_CrsMatrix.hpp>
#include <string>
#include <iostream>
#include <vector>
Include dependency graph for AdapterForTests.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AdapterWithTemplateName
 
struct  AdapterWithOptionalCoordinateAdapter
 
class  AdapterFactory
 

Macros

#define SET_COORDS_INPUT_1(adapterClass)
 
#define SET_COORDS_INPUT_2(adapterClass)
 

Detailed Description

Generate Adapter for testing purposes.

Definition in file AdapterForTests.hpp.

Macro Definition Documentation

#define SET_COORDS_INPUT_1 (   adapterClass)
Value:
auto * ca = dynamic_cast<adapterClass*>(adapters.coordinate.adapter); \
if(!ca) {throw std::logic_error( "Coordinate adapter case failed!" );} \
ia->setCoordinateInput(ca);
#define SET_COORDS_INPUT_2 (   adapterClass)
Value:
auto * ca = dynamic_cast<adapterClass*>(adapters.coordinate.adapter); \
if(!ca) {throw std::logic_error( "Coordinate adapter case failed!" );} \
ia->setCoordinateInput(ca);