Protected Types |
Protected Member Functions |
Protected Attributes |
Static Protected Attributes |
List of all members
PartBaseTest Class Reference
Base fixture class for any order part-by-part remap tests. More...
Inheritance diagram for PartBaseTest:
Protected Types | |
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 | |
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 | |
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< PartPair > | parts |
std::vector< int > | source_cells [nb_parts] |
std::vector< int > | target_cells [nb_parts] |
Static Protected Attributes | |
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
Base fixture class for any order part-by-part remap tests.
Here, source and target meshes are partitioned into two parts, and each part is remapped independently. Remapped values are then compared to the exact values given by an analytical function. Here source and target parts are perfectly aligned (no mismatch), but the target mesh is twice finer than the source mesh.
Member Typedef Documentation
◆ PartPair
|
protected |
◆ Remapper
|
protected |
Constructor & Destructor Documentation
◆ PartBaseTest()
|
inlineprotected |
Setup each test-case.
It creates both source and target meshes, then computes and assigns a density field on source mesh, then creates parts couples for both source and target meshes.
Member Function Documentation
◆ create_partition()
template<bool is_source>
|
inlineprotected |
Create a partition based on a threshold value.
- Template Parameters
-
is_source for the source mesh?
- Parameters
-
x_min min centroid x-value threshold for first part. x_max max centroid x-value threshold for first part. y_min min centroid y-value threshold for first part. y_max max centroid y-value threshold for first part.
◆ populate_parts()
|
inlineprotected |
Populate the part pairs partition.
Member Data Documentation
◆ CELL
|
staticprotected |
◆ epsilon
|
staticprotected |
◆ lower_bound
|
staticprotected |
◆ nb_parts
|
staticprotected |
◆ nb_source_cells
|
protected |
◆ nb_target_cells
|
protected |
◆ parts
|
protected |
◆ source_cells
|
protected |
◆ source_mesh
|
protected |
◆ source_mesh_wrapper
|
protected |
◆ source_state
|
protected |
◆ source_state_wrapper
|
protected |
◆ target_cells
|
protected |
◆ target_mesh
|
protected |
◆ target_mesh_wrapper
|
protected |
◆ target_state
|
protected |
◆ target_state_wrapper
|
protected |
◆ upper_bound
|
staticprotected |
The documentation for this class was generated from the following file:
- /home/portage/portage/portage/driver/test/test_driver_part.cc