16 #include <deal.II/base/exceptions.h> 17 #include <deal.II/base/memory_consumption.h> 18 #include <deal.II/dofs/dof_objects.h> 19 #include <deal.II/dofs/dof_handler.h> 20 #include <deal.II/fe/fe.h> 22 DEAL_II_NAMESPACE_OPEN
38 template <
int dh_dim,
int spacedim>
42 const unsigned int obj_index,
43 const unsigned int fe_index,
44 const unsigned int local_index,
49 ExcMessage (
"Only the default FE index is allowed for non-hp DoFHandler objects"));
50 Assert (local_index<dof_handler.get_fe().template n_dofs_per_object<dim>(),
51 ExcIndexRange (local_index, 0, dof_handler.get_fe().template n_dofs_per_object<dim>()));
52 Assert (obj_index * dof_handler.get_fe().template n_dofs_per_object<dim>()+local_index
57 dofs[obj_index * dof_handler.get_fe()
58 .template n_dofs_per_object<dim>() + local_index] = global_index;
69 #include "dof_objects.inst" 73 DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcIndexRange(int arg1, int arg2, int arg3)
static ::ExceptionBase & ExcMessage(std::string arg1)
unsigned int global_dof_index
#define Assert(cond, exc)
void set_dof_index(const ::DoFHandler< dh_dim, spacedim > &dof_handler, const unsigned int obj_index, const unsigned int fe_index, const unsigned int local_index, const types::global_dof_index global_index)
std::size_t memory_consumption() const
std_cxx11::enable_if< std_cxx11::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
static ::ExceptionBase & ExcInternalError()