static
types::global_dof_index
get_vertex_dof_index (const dealii::DoFHandler<dim,spacedim> &dof_handler,
- const types::global_dof_index vertex_index,
+ const unsigned int vertex_index,
const unsigned int fe_index,
- const types::global_dof_index local_index)
+ const unsigned int local_index)
{
Assert ((fe_index == dealii::DoFHandler<dim,spacedim>::default_fe_index),
ExcMessage ("Only the default FE index is allowed for non-hp DoFHandler objects"));
static
types::global_dof_index
get_vertex_dof_index (const dealii::hp::DoFHandler<dim,spacedim> &dof_handler,
- const types::global_dof_index vertex_index,
+ const unsigned int vertex_index,
const unsigned int fe_index,
- const types::global_dof_index local_index)
+ const unsigned int local_index)
{
Assert ( (fe_index != dealii::hp::DoFHandler<dim,spacedim>::default_fe_index),
ExcMessage ("You need to specify a FE index when working "
/**
* Number of degrees of freedom on a vertex.
*/
- const types::global_dof_index dofs_per_vertex;
+ const unsigned int dofs_per_vertex;
/**
* Number of degrees of freedom in a line; not including the degrees of
* freedom on the vertices of the line.
*/
- const types::global_dof_index dofs_per_line;
+ const unsigned int dofs_per_line;
/**
* Number of degrees of freedom in a quadrilateral; not including the
* Exception
*/
DeclException1 (ExcNewNumbersNotConsecutive,
- int,
+ types::global_dof_index,
<< "The given list of new dof indices is not consecutive: "
<< "the index " << arg1 << " does not exist.");
/**
unsigned int
max_couplings_between_dofs (const DoFHandler<1,spacedim> &dof_handler)
{
- return std::min(3*dof_handler.selected_fe->dofs_per_vertex +
- 2*dof_handler.selected_fe->dofs_per_line,
+ return std::min(static_cast<types::global_dof_index>(3*dof_handler.selected_fe->dofs_per_vertex +
+ 2*dof_handler.selected_fe->dofs_per_line),
dof_handler.n_dofs());
}