PartOrderOneTest Class Reference

Fixture class for first-order remap tests. More...

Inheritance diagram for PartOrderOneTest:
PartBaseTest

Public Member Functions

 PartOrderOneTest ()
 Setup each test-case. More...
 

Additional Inherited Members

- Protected Types inherited from PartBaseTest
using Remapper = Portage::CoreDriver< 2, Wonton::Entity_kind::CELL, Wonton::Jali_Mesh_Wrapper, Wonton::Jali_State_Wrapper >
 
using PartPair = Portage::PartPair< 2, Wonton::Jali_Mesh_Wrapper, Wonton::Jali_State_Wrapper >
 
- Protected Member Functions inherited from PartBaseTest
template<bool is_source>
void create_partition (double x_min, double x_max, double y_min, double y_max)
 Create a partition based on a threshold value. More...
 
void populate_parts (double x_min, double x_max, double y_min, double y_max)
 Populate the part pairs partition. More...
 
 PartBaseTest ()
 Setup each test-case. More...
 
- Protected Attributes inherited from PartBaseTest
int nb_source_cells = 0
 
int nb_target_cells = 0
 
std::shared_ptr< Jali::Mesh > source_mesh
 
std::shared_ptr< Jali::Mesh > target_mesh
 
std::shared_ptr< Jali::State > source_state
 
std::shared_ptr< Jali::State > target_state
 
Wonton::Jali_Mesh_Wrapper source_mesh_wrapper
 
Wonton::Jali_Mesh_Wrapper target_mesh_wrapper
 
Wonton::Jali_State_Wrapper source_state_wrapper
 
Wonton::Jali_State_Wrapper target_state_wrapper
 
std::vector< PartPairparts
 
std::vector< int > source_cells [nb_parts]
 
std::vector< int > target_cells [nb_parts]
 
- Static Protected Attributes inherited from PartBaseTest
static constexpr double const upper_bound = std::numeric_limits<double>::max()
 
static constexpr double const lower_bound = std::numeric_limits<double>::min()
 
static constexpr double const epsilon = 1.E-10
 
static constexpr int const nb_parts = 2
 
static constexpr auto const CELL = Wonton::Entity_kind::CELL
 

Detailed Description

Fixture class for first-order remap tests.

Here we consider a piecewise constant field on a 2D cartesian grid with:

f(x,y) = |r_min if (x < r) |r_max otherwise given [r_min,r_max]=[30,100]

0,1 1,1 ------—:------— | s1 : | | _____:__ |

:
s0 :
:
:

| --—:– | | r=30 : r=100 | ------—:------— 0,0 r 1,0 Notice that we do not have any part mismatch in this case. Hence we expect a strictly conservative remap using a first-order part-by-part scheme.

Constructor & Destructor Documentation

◆ PartOrderOneTest()

PartOrderOneTest::PartOrderOneTest ( )
inline

Setup each test-case.

It creates both source and target meshes, then computes and assigns a density field on source mesh, then creates parts by picking entities within (0.2,0.2) and (0.6,0.6).


The documentation for this class was generated from the following file: