18 #include "libmesh/dof_map_base.h" 19 #include "libmesh/parallel_implementation.h" 26 #ifdef LIBMESH_ENABLE_AMR
38 std::vector<dof_id_type> dofs_on_proc(n_proc, 0);
41 #ifdef LIBMESH_ENABLE_AMR 57 #ifdef LIBMESH_ENABLE_AMR 68 return std::accumulate(dofs_on_proc.begin(), dofs_on_proc.end(),
static_cast<std::size_t
>(0));
void allgather(const T &send_data, std::vector< T, A > &recv_data) const
std::vector< dof_id_type > _first_df
First DOF index on processor p.
const Parallel::Communicator & comm() const
The libMesh namespace provides an interface to certain functionality in the library.
uint8_t processor_id_type
processor_id_type n_processors() const
dof_id_type _n_dfs
Total number of degrees of freedom.
DofMapBase(const Parallel::Communicator &comm)
An object whose state is distributed along a set of processors.
std::vector< dof_id_type > _end_old_df
Last old DOF index (plus 1) on processor p.
std::size_t compute_dof_info(dof_id_type n_local_dofs)
compute the key degree of freedom information given the local number of degrees of freedom on this pr...
dof_id_type _n_old_dfs
Total number of degrees of freedom on old dof objects.
std::vector< dof_id_type > _first_old_df
First old DOF index on processor p.
std::vector< dof_id_type > _end_df
Last DOF index (plus 1) on processor p.