◆ CPPUNIT_TEST()
◆ CPPUNIT_TEST_SUITE()
The goal of this test is to verify proper operation of the MappedSubdomainPartitioner on different numbers of processors.
◆ CPPUNIT_TEST_SUITE_END()
MappedSubdomainPartitionerTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ setUp()
void MappedSubdomainPartitionerTest::setUp |
( |
| ) |
|
|
inline |
◆ tearDown()
void MappedSubdomainPartitionerTest::tearDown |
( |
| ) |
|
|
inline |
◆ testMappedSubdomainPartitioner()
void MappedSubdomainPartitionerTest::testMappedSubdomainPartitioner |
( |
| ) |
|
|
inline |
Definition at line 38 of file mapped_subdomain_partitioner_test.C.
44 ymin = 0., ymax = 10.;
81 elem->subdomain_id() = current_subdomain_id++;
84 if (current_subdomain_id == n_subdomains)
85 current_subdomain_id = 0;
96 CPPUNIT_ASSERT_EQUAL(static_cast<int>(elem->subdomain_id()/2),
97 static_cast<int>(elem->processor_id()));
References libMesh::MeshTools::Generation::build_square(), libMesh::MeshBase::element_ptr_range(), mesh, libMesh::MeshBase::partition(), libMesh::MeshBase::partitioner(), libMesh::QUAD4, libMesh::Real, libMesh::MappedSubdomainPartitioner::subdomain_to_proc, and TestCommWorld.
The documentation for this class was generated from the following file:
std::map< subdomain_id_type, processor_id_type > subdomain_to_proc
Before calling partition() or partition_range(), the user must assign all the Mesh subdomains to cert...
The MappedSubdomainPartitioner partitions the elements based on their subdomain ids.