Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Functions | Variables
findUniqueGids.cpp File Reference
#include <iostream>
#include <vector>
#include <array>
#include <unordered_set>
#include <string>
#include <typeinfo>
#include <Teuchos_Comm.hpp>
#include <Teuchos_DefaultComm.hpp>
#include <Zoltan2_findUniqueGids.hpp>
Include dependency graph for findUniqueGids.cpp:

Go to the source code of this file.

Classes

struct  type_name< T >
 

Macros

#define DECL_TYPE_NAME(x)   template<> struct type_name<x> { static const char* name() {return #x;} }
 

Functions

 DECL_TYPE_NAME (int)
 
 DECL_TYPE_NAME (long)
 
void checkNUnique (std::string &name, size_t nUniqueGids, size_t nExpected)
 
template<typename gno_t >
void checkMaxGid (std::string &name, std::vector< gno_t > &gids, gno_t maxExpected, const Teuchos::Comm< int > &comm)
 
template<typename gno_t >
void checkMinGid (std::string &name, std::vector< gno_t > &gids, gno_t minExpected, const Teuchos::Comm< int > &comm)
 
template<typename gno_t >
void checkNLocallyUnique (std::string &name, std::vector< gno_t > &gids, size_t nExpected)
 
template<typename gno_t >
void test1 (Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
template<typename gno_t >
void test2 (Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
template<typename gno_t >
void test3 (Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
template<typename gno_t >
void test4 (Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
template<typename gno_t >
void test5 (Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
template<typename gno_t >
void test6 (Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
int main (int narg, char *arg[])
 

Variables

static const std::string fail = "FAIL "
 
static const std::string pass = " "
 

Macro Definition Documentation

#define DECL_TYPE_NAME (   x)    template<> struct type_name<x> { static const char* name() {return #x;} }

Definition at line 36 of file findUniqueGids.cpp.

Function Documentation

DECL_TYPE_NAME ( int  )
DECL_TYPE_NAME ( long  )
void checkNUnique ( std::string &  name,
size_t  nUniqueGids,
size_t  nExpected 
)

Definition at line 49 of file findUniqueGids.cpp.

template<typename gno_t >
void checkMaxGid ( std::string &  name,
std::vector< gno_t > &  gids,
gno_t  maxExpected,
const Teuchos::Comm< int > &  comm 
)

Definition at line 59 of file findUniqueGids.cpp.

template<typename gno_t >
void checkMinGid ( std::string &  name,
std::vector< gno_t > &  gids,
gno_t  minExpected,
const Teuchos::Comm< int > &  comm 
)

Definition at line 81 of file findUniqueGids.cpp.

template<typename gno_t >
void checkNLocallyUnique ( std::string &  name,
std::vector< gno_t > &  gids,
size_t  nExpected 
)

Definition at line 103 of file findUniqueGids.cpp.

template<typename gno_t >
void test1 ( Teuchos::RCP< const Teuchos::Comm< int > > &  comm)

Definition at line 130 of file findUniqueGids.cpp.

template<typename gno_t >
void test2 ( Teuchos::RCP< const Teuchos::Comm< int > > &  comm)

Definition at line 175 of file findUniqueGids.cpp.

template<typename gno_t >
void test3 ( Teuchos::RCP< const Teuchos::Comm< int > > &  comm)

Definition at line 228 of file findUniqueGids.cpp.

template<typename gno_t >
void test4 ( Teuchos::RCP< const Teuchos::Comm< int > > &  comm)

Definition at line 292 of file findUniqueGids.cpp.

template<typename gno_t >
void test5 ( Teuchos::RCP< const Teuchos::Comm< int > > &  comm)

Definition at line 339 of file findUniqueGids.cpp.

template<typename gno_t >
void test6 ( Teuchos::RCP< const Teuchos::Comm< int > > &  comm)

Definition at line 404 of file findUniqueGids.cpp.

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

Definition at line 459 of file findUniqueGids.cpp.

Variable Documentation

const std::string fail = "FAIL "
static

Definition at line 45 of file findUniqueGids.cpp.

const std::string pass = " "
static

Definition at line 46 of file findUniqueGids.cpp.