84 auto & nodal_system = es.add_system<
System>(
"nodal_system");
86 auto & nodal_dof_map = nodal_system.get_dof_map();
87 nodal_dof_map.remove_default_ghosting();
88 auto & elem_system = es.add_system<
System>(
"elem_system");
90 auto & elem_dof_map = elem_system.get_dof_map();
91 elem_dof_map.remove_default_ghosting();
97 mesh.evaluable_elements_end(nodal_dof_map));
98 typedef decltype(n_evaluable) comp_type;
102 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(9));
106 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(1));
110 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(0));
117 mesh.evaluable_elements_end(elem_dof_map));
118 typedef decltype(n_evaluable) comp_type;
122 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(
TestCommWorld->
size() == 1 ? 9 : 8));
126 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(1));
130 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(0));
136 std::vector<const DofMap *> dof_maps = {&nodal_dof_map, &elem_dof_map};
138 mesh.multi_evaluable_elements_end(dof_maps));
139 typedef decltype(n_evaluable) comp_type;
143 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(
TestCommWorld->
size() == 1 ? 9 : 8));
147 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(1));
151 CPPUNIT_ASSERT_EQUAL(n_evaluable, comp_type(0));
This is the EquationSystems class.
libMesh::Parallel::Communicator * TestCommWorld
virtual std::unique_ptr< Partitioner > & partitioner()
A partitioner to use at each prepare_for_use()
processor_id_type rank() const
Real distance(const Point &p)
processor_id_type size() const
Manages consistently variables, degrees of freedom, and coefficient vectors.
unsigned int add_variable(std::string_view var, const FEType &type, const std::set< subdomain_id_type > *const active_subdomains=nullptr)
Adds the variable var to the list of variables for this system.
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.