1 #include <libmesh/distributed_mesh.h> 2 #include <libmesh/elem.h> 3 #include "libmesh/enum_partitioner_type.h" 4 #include <libmesh/mesh_generation.h> 5 #include <libmesh/parallel.h> 6 #include <libmesh/partitioner.h> 7 #include <libmesh/replicated_mesh.h> 23 CPPUNIT_TEST( testDeleteElemReplicated );
24 CPPUNIT_TEST( testDeleteElemDistributed );
27 CPPUNIT_TEST_SUITE_END();
54 std::vector<std::vector<int>> deletions =
55 {{1, 2, 4}, {0, 3}, {0, 2}, {1}};
57 for (
auto deletionset : deletions)
59 for (
int e : deletionset)
The ReplicatedMesh class is derived from the MeshBase class, and is used to store identical copies of...
libMesh::Parallel::Communicator * TestCommWorld
void prepare_for_use(const bool skip_renumber_nodes_and_elements, const bool skip_find_neighbors)
Prepare a newly ecreated (or read) mesh for use.
void testDeleteElemDistributed()
This is the base class from which all geometric element types are derived.
virtual std::unique_ptr< Partitioner > & partitioner()
A partitioner to use at each prepare_for_use()
The libMesh namespace provides an interface to certain functionality in the library.
void remove_links_to_me()
Resets this element's neighbors' appropriate neighbor pointers and its parent's and children's approp...
virtual void delete_elem(Elem *e)=0
Removes element e from the mesh.
static std::unique_ptr< Partitioner > build(const PartitionerType solver_package)
Builds a Partitioner of the type specified by partitioner_type.
The UnstructuredMesh class is derived from the MeshBase class.
The DistributedMesh class is derived from the MeshBase class, and is intended to provide identical fu...
CPPUNIT_TEST_SUITE_REGISTRATION(MeshDeletionsTest)
void testDeleteElemReplicated()
virtual const Elem * query_elem_ptr(const dof_id_type i) const =0
virtual dof_id_type n_elem() const =0
void testDeleteElem(UnstructuredMesh &mesh)