Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Enumerations | Functions
TaskMappingProblemTest.cpp File Reference
#include "Zoltan2_TaskMapping.hpp"
#include <Zoltan2_PartitioningProblem.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <string>
#include <Teuchos_RCP.hpp>
#include <Teuchos_Array.hpp>
#include <Teuchos_ParameterList.hpp>
#include "Teuchos_XMLParameterListHelpers.hpp"
#include "Tpetra_MultiVector.hpp"
#include <Tpetra_CrsGraph.hpp>
#include <Tpetra_Map.hpp>
#include <Zoltan2_XpetraCrsGraphAdapter.hpp>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_TimerManager.hpp>
#include <Zoltan2_MappingProblem.hpp>
#include <Zoltan2_MappingSolution.hpp>
#include <Zoltan2_EvaluatePartition.hpp>
#include <Zoltan2_EvaluateMapping.hpp>
Include dependency graph for TaskMappingProblemTest.cpp:

Go to the source code of this file.

Typedefs

typedef Tpetra::CrsGraph
< zlno_t, zgno_t, znode_t
mytest_tcrsGraph_t
 
typedef Tpetra::MultiVector
< zscalar_t, zlno_t, zgno_t,
znode_t
mytest_tMVector_t
 
typedef
Zoltan2::XpetraCrsGraphAdapter
< mytest_tcrsGraph_t,
mytest_tMVector_t
mytest_adapter_t
 
typedef Tpetra::Map::node_type mytest_znode_t
 
typedef Tpetra::Map< zlno_t,
zgno_t, mytest_znode_t
mytest_map_t
 
typedef mytest_adapter_t::part_t mytest_part_t
 

Enumerations

enum  MappingScenarios {
  TwoPhase, SinglePhaseElementsInProcessInSamePartition, SinglePhaseElementsAreOnePartition, TwoPhase,
  SinglePhaseElementsInProcessInSamePartition, SinglePhaseElementsAreOnePartition
}
 
enum  MappingInputDistributution { Distributed, AllHaveCopies, Distributed, AllHaveCopies }
 

Functions

RCP< mytest_tcrsGraph_tcreate_tpetra_input_matrix (int nx, int ny, int nz, int numProcs, Teuchos::RCP< const Teuchos::Comm< int > > tcomm, RCP< Zoltan2::Environment > env, zscalar_t **&partCenters, zgno_t &myTasks)
 
RCP
< Zoltan2::XpetraMultiVectorAdapter
< mytest_tMVector_t > > 
create_multi_vector_adapter (RCP< const mytest_map_t > map, zscalar_t **partCenters, zgno_t myTasks)
 
void test_distributed_input_adapter (int nx, int ny, int nz, Teuchos::RCP< const Teuchos::Comm< int > > global_tcomm)
 
void test_serial_input_adapter (int nx, int ny, int nz, Teuchos::RCP< const Teuchos::Comm< int > > global_tcomm)
 
int main (int narg, char *arg[])
 

Typedef Documentation

typedef Tpetra::CrsGraph<zlno_t, zgno_t, znode_t> mytest_tcrsGraph_t

Definition at line 25 of file TaskMappingProblemTest.cpp.

typedef Tpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t> mytest_tMVector_t

Definition at line 26 of file TaskMappingProblemTest.cpp.

Definition at line 27 of file TaskMappingProblemTest.cpp.

typedef Tpetra::Map ::node_type mytest_znode_t

Definition at line 28 of file TaskMappingProblemTest.cpp.

typedef Tpetra::Map<zlno_t, zgno_t, mytest_znode_t> mytest_map_t

Definition at line 29 of file TaskMappingProblemTest.cpp.

Definition at line 30 of file TaskMappingProblemTest.cpp.

Enumeration Type Documentation

Enumerator
TwoPhase 
SinglePhaseElementsInProcessInSamePartition 
SinglePhaseElementsAreOnePartition 
TwoPhase 
SinglePhaseElementsInProcessInSamePartition 
SinglePhaseElementsAreOnePartition 

Definition at line 32 of file TaskMappingProblemTest.cpp.

Enumerator
Distributed 
AllHaveCopies 
Distributed 
AllHaveCopies 

Definition at line 38 of file TaskMappingProblemTest.cpp.

Function Documentation

RCP<mytest_tcrsGraph_t> create_tpetra_input_matrix ( int  nx,
int  ny,
int  nz,
int  numProcs,
Teuchos::RCP< const Teuchos::Comm< int > >  tcomm,
RCP< Zoltan2::Environment env,
zscalar_t **&  partCenters,
zgno_t myTasks 
)

Definition at line 43 of file TaskMappingProblemTest.cpp.

RCP<Zoltan2::XpetraMultiVectorAdapter<mytest_tMVector_t> > create_multi_vector_adapter ( RCP< const mytest_map_t map,
zscalar_t **  partCenters,
zgno_t  myTasks 
)

Definition at line 130 of file TaskMappingProblemTest.cpp.

void test_distributed_input_adapter ( int  nx,
int  ny,
int  nz,
Teuchos::RCP< const Teuchos::Comm< int > >  global_tcomm 
)

Definition at line 158 of file TaskMappingProblemTest.cpp.

void test_serial_input_adapter ( int  nx,
int  ny,
int  nz,
Teuchos::RCP< const Teuchos::Comm< int > >  global_tcomm 
)

Definition at line 281 of file TaskMappingProblemTest.cpp.

int main ( int  narg,
char *  arg[] 
)

Definition at line 384 of file TaskMappingProblemTest.cpp.