207 System & system =
_es->get_system(
"SimpleSystem");
209 const std::vector<dof_id_type> & send_list = dof_map.
get_send_list();
217 auto side_neighbors_found = [&]() ->
bool 219 for (
const auto & elem :
_mesh->element_ptr_range())
220 for (
auto s : elem->side_index_range())
237 CPPUNIT_ASSERT(side_neighbors_found);
242 for (
auto it_e = beg; it_e != end; ++it_e)
243 for (
auto it_f =
std::next(it_e); it_f != end; ++it_f)
246 auto check_dofs = [&](
const Elem * elem)
248 std::vector<dof_id_type> dof_indices;
251 for (
const auto & dof : dof_indices)
254 bool is_in_send_list = (
Utility::binary_find(send_list.begin(), send_list.end(), dof) != send_list.end());
255 CPPUNIT_ASSERT(is_local || is_in_send_list);
259 const Elem * elem_e = *it_e;
260 const Elem * elem_f = *it_f;
dof_id_type end_dof(const processor_id_type proc) const
void dof_indices(const Elem *const elem, std::vector< dof_id_type > &di) const
This is the base class from which all geometric element types are derived.
std::unique_ptr< EquationSystems > _es
std::unique_ptr< MeshBase > _mesh
Real distance(const Point &p)
This class handles the numbering of degrees of freedom on a mesh.
Manages consistently variables, degrees of freedom, and coefficient vectors.
ForwardIterator binary_find(ForwardIterator first, ForwardIterator last, const T &value)
The STL provides std::binary_search() which returns true or false depending on whether the searched-f...
void read_mesh(const std::string &mesh_filename)
dof_id_type first_dof(const processor_id_type proc) const
const DofMap & get_dof_map() const
processor_id_type processor_id() const
const std::vector< dof_id_type > & get_send_list() const