Zoltan2
Loading...
Searching...
No Matches
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_tmytest_tcrsGraph_t
 
typedef Tpetra::MultiVector< zscalar_t, zlno_t, zgno_t, znode_tmytest_tMVector_t
 
typedef Zoltan2::XpetraCrsGraphAdapter< mytest_tcrsGraph_t, mytest_tMVector_tmytest_adapter_t
 
typedef Tpetra::Map ::node_type mytest_znode_t
 
typedef Tpetra::Map< zlno_t, zgno_t, mytest_znode_tmytest_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

◆ mytest_tcrsGraph_t

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

Definition at line 25 of file TaskMappingProblemTest.cpp.

◆ mytest_tMVector_t

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

Definition at line 27 of file TaskMappingProblemTest.cpp.

◆ mytest_adapter_t

Definition at line 29 of file TaskMappingProblemTest.cpp.

◆ mytest_znode_t

typedef Tpetra::Map ::node_type mytest_znode_t

Definition at line 30 of file TaskMappingProblemTest.cpp.

◆ mytest_map_t

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

Definition at line 31 of file TaskMappingProblemTest.cpp.

◆ mytest_part_t

Definition at line 32 of file TaskMappingProblemTest.cpp.

Enumeration Type Documentation

◆ MappingScenarios

Enumerator
TwoPhase 
SinglePhaseElementsInProcessInSamePartition 
SinglePhaseElementsAreOnePartition 
TwoPhase 
SinglePhaseElementsInProcessInSamePartition 
SinglePhaseElementsAreOnePartition 

Definition at line 34 of file TaskMappingProblemTest.cpp.

◆ MappingInputDistributution

Enumerator
Distributed 
AllHaveCopies 
Distributed 
AllHaveCopies 

Definition at line 40 of file TaskMappingProblemTest.cpp.

Function Documentation

◆ create_tpetra_input_matrix()

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 45 of file TaskMappingProblemTest.cpp.

◆ create_multi_vector_adapter()

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 141 of file TaskMappingProblemTest.cpp.

◆ test_distributed_input_adapter()

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

Definition at line 174 of file TaskMappingProblemTest.cpp.

◆ test_serial_input_adapter()

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

Definition at line 354 of file TaskMappingProblemTest.cpp.

◆ main()

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

Definition at line 485 of file TaskMappingProblemTest.cpp.