IOSS 2.0
Loading...
Searching...
No Matches
Utst_map.C File Reference
#include "Ioss_ConcreteVariableType.h"
#include "Ioss_Field.h"
#include "Ioss_Map.h"
#include <catch2/catch_test_macros.hpp>
#include <cstddef>
#include <numeric>
#include <random>
#include <stdint.h>
#include <string>
#include <vector>
Include dependency graph for Utst_map.C:

Functions

template<typename INT >
void initialize_data (std::vector< INT > &init)
 
template<typename INT >
void verify_global_to_local (const Ioss::Map &my_map, const std::vector< INT > &init)
 
template<typename INT >
void test_reorder (Ioss::Map &my_map, std::vector< INT > &init, size_t offset)
 
 TEST_CASE ("test random ids")
 
 TEST_CASE ("test sequential map with offset")
 
 TEST_CASE ("test segmented map creation")
 
 TEST_CASE ("test reverse segmented map creation")
 
 TEST_CASE ("test segment gap")
 
 TEST_CASE ("test small reverse")
 
 TEST_CASE ("test small swap front back")
 
 TEST_CASE ("test map_data sequential")
 
 TEST_CASE ("test map_data random")
 

Function Documentation

◆ initialize_data()

template<typename INT >
void initialize_data ( std::vector< INT > & init)

◆ TEST_CASE() [1/9]

TEST_CASE ( "test map_data random" )

◆ TEST_CASE() [2/9]

TEST_CASE ( "test map_data sequential" )

◆ TEST_CASE() [3/9]

TEST_CASE ( "test random ids" )

◆ TEST_CASE() [4/9]

TEST_CASE ( "test reverse segmented map creation" )

◆ TEST_CASE() [5/9]

TEST_CASE ( "test segment gap" )

◆ TEST_CASE() [6/9]

TEST_CASE ( "test segmented map creation" )

◆ TEST_CASE() [7/9]

TEST_CASE ( "test sequential map with offset" )

◆ TEST_CASE() [8/9]

TEST_CASE ( "test small reverse" )

◆ TEST_CASE() [9/9]

TEST_CASE ( "test small swap front back" )

◆ test_reorder()

template<typename INT >
void test_reorder ( Ioss::Map & my_map,
std::vector< INT > & init,
size_t offset )

◆ verify_global_to_local()

template<typename INT >
void verify_global_to_local ( const Ioss::Map & my_map,
const std::vector< INT > & init )