Zoltan2
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 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 argc, char *argv[])
 

Variables

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

Macro Definition Documentation

◆ DECL_TYPE_NAME

#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() [1/2]

DECL_TYPE_NAME ( int  )

◆ DECL_TYPE_NAME() [2/2]

DECL_TYPE_NAME ( long  long)

◆ checkNUnique()

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

Definition at line 84 of file findUniqueGids.cpp.

◆ checkMaxGid()

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 94 of file findUniqueGids.cpp.

◆ checkMinGid()

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 116 of file findUniqueGids.cpp.

◆ checkNLocallyUnique()

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

Definition at line 138 of file findUniqueGids.cpp.

◆ test1()

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

Definition at line 165 of file findUniqueGids.cpp.

◆ test2()

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

Definition at line 210 of file findUniqueGids.cpp.

◆ test3()

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

Definition at line 263 of file findUniqueGids.cpp.

◆ test4()

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

Definition at line 327 of file findUniqueGids.cpp.

◆ test5()

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

Definition at line 374 of file findUniqueGids.cpp.

◆ test6()

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

Definition at line 439 of file findUniqueGids.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 494 of file findUniqueGids.cpp.

Variable Documentation

◆ fail

const std::string fail = "FAIL "
static

Definition at line 80 of file findUniqueGids.cpp.

◆ pass

const std::string pass = " "
static

Definition at line 81 of file findUniqueGids.cpp.