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 72 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 85 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 95 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 117 of file findUniqueGids.cpp.

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

Definition at line 139 of file findUniqueGids.cpp.

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

Definition at line 166 of file findUniqueGids.cpp.

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

Definition at line 211 of file findUniqueGids.cpp.

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

Definition at line 264 of file findUniqueGids.cpp.

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

Definition at line 328 of file findUniqueGids.cpp.

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

Definition at line 375 of file findUniqueGids.cpp.

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

Definition at line 440 of file findUniqueGids.cpp.

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

Definition at line 495 of file findUniqueGids.cpp.

Variable Documentation

const std::string fail = "FAIL "
static

Definition at line 81 of file findUniqueGids.cpp.

const std::string pass = " "
static

Definition at line 82 of file findUniqueGids.cpp.