DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
test_IndexMapping.cpp File Reference

Doctest-based unit tests for DNDS::GlobalOffsetsMapping and DNDS::OffsetAscendIndexMapping. More...

#include "doctest.h"
#include "DNDS/IndexMapping.hpp"
#include "DNDS/MPI.hpp"
#include <numeric>
Include dependency graph for test_IndexMapping.cpp:

Go to the source code of this file.

Classes

struct  SizeTag< N >
 

Macros

#define DOCTEST_CONFIG_IMPLEMENT
 

Functions

int main (int argc, char **argv)
 
 TEST_CASE ("GlobalOffsetsMapping uniform distribution")
 
 TEST_CASE ("GlobalOffsetsMapping non-uniform distribution")
 
 TEST_CASE ("GlobalOffsetsMapping search")
 
 TEST_CASE ("OffsetAscendIndexMapping pull-based construction")
 
 TEST_CASE ("OffsetAscendIndexMapping search_indexAppend")
 
 TEST_CASE ("OffsetAscendIndexMapping empty ghost set")
 
 TYPE_TO_STRING (SizeTag< 10 >)
 
 TYPE_TO_STRING (SizeTag< 50 >)
 
 TYPE_TO_STRING (SizeTag< 200 >)
 
 TYPE_TO_STRING (SizeTag< 1000 >)
 
 TEST_CASE_TEMPLATE ("Parametric GlobalOffsetsMapping", Tag, SizeTag< 10 >, SizeTag< 50 >, SizeTag< 200 >, SizeTag< 1000 >)
 
 TEST_CASE_TEMPLATE ("Parametric OffsetAscendIndexMapping", Tag, SizeTag< 10 >, SizeTag< 50 >, SizeTag< 200 >, SizeTag< 1000 >)
 

Detailed Description

Doctest-based unit tests for DNDS::GlobalOffsetsMapping and DNDS::OffsetAscendIndexMapping.

Run under mpirun with 1, 2, and 4 ranks. Tests offset computation, local-to-global and global-to-local mapping, and search operations for both uniform and non-uniform distributions.

See also
DNDS Core Unit Tests for the full test-suite overview.
Test:
GlobalOffsetsMapping (uniform, non-uniform, search), OffsetAscendIndexMapping (pull-based, search_indexAppend, empty ghost set).

Definition in file test_IndexMapping.cpp.

Macro Definition Documentation

◆ DOCTEST_CONFIG_IMPLEMENT

#define DOCTEST_CONFIG_IMPLEMENT

Definition at line 16 of file test_IndexMapping.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 24 of file test_IndexMapping.cpp.

◆ TEST_CASE() [1/6]

TEST_CASE ( "GlobalOffsetsMapping non-uniform distribution"  )

Definition at line 90 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TEST_CASE() [2/6]

TEST_CASE ( "GlobalOffsetsMapping search"  )

Definition at line 149 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TEST_CASE() [3/6]

TEST_CASE ( "GlobalOffsetsMapping uniform distribution"  )

Definition at line 49 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TEST_CASE() [4/6]

TEST_CASE ( "OffsetAscendIndexMapping empty ghost set"  )

Definition at line 434 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TEST_CASE() [5/6]

TEST_CASE ( "OffsetAscendIndexMapping pull-based construction"  )

Definition at line 227 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TEST_CASE() [6/6]

TEST_CASE ( "OffsetAscendIndexMapping search_indexAppend"  )

Definition at line 360 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TEST_CASE_TEMPLATE() [1/2]

TEST_CASE_TEMPLATE ( "Parametric GlobalOffsetsMapping"  ,
Tag  ,
SizeTag< 10 >  ,
SizeTag< 50 >  ,
SizeTag< 200 >  ,
SizeTag< 1000 >   
)

Definition at line 518 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TEST_CASE_TEMPLATE() [2/2]

TEST_CASE_TEMPLATE ( "Parametric OffsetAscendIndexMapping"  ,
Tag  ,
SizeTag< 10 >  ,
SizeTag< 50 >  ,
SizeTag< 200 >  ,
SizeTag< 1000 >   
)

Definition at line 554 of file test_IndexMapping.cpp.

Here is the call graph for this function:

◆ TYPE_TO_STRING() [1/4]

TYPE_TO_STRING ( SizeTag< 10 >  )

◆ TYPE_TO_STRING() [2/4]

TYPE_TO_STRING ( SizeTag< 1000 >  )

◆ TYPE_TO_STRING() [3/4]

TYPE_TO_STRING ( SizeTag< 200 >  )

◆ TYPE_TO_STRING() [4/4]

TYPE_TO_STRING ( SizeTag< 50 >  )