template <int dim, int spacedim>
static
- unsigned int
+ types::global_dof_index
get_vertex_dof_index (const dealii::DoFHandler<dim,spacedim> &dof_handler,
- const unsigned int vertex_index,
+ const types::global_dof_index vertex_index,
const unsigned int fe_index,
- const unsigned int local_index)
+ const types::global_dof_index 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"));
template<int dim, int spacedim>
static
- unsigned int
+ types::global_dof_index
get_vertex_dof_index (const dealii::hp::DoFHandler<dim,spacedim> &dof_handler,
- const unsigned int vertex_index,
+ const types::global_dof_index vertex_index,
const unsigned int fe_index,
- const unsigned int local_index)
+ const types::global_dof_index local_index)
{
Assert ( (fe_index != dealii::hp::DoFHandler<dim,spacedim>::default_fe_index),
ExcMessage ("You need to specify a FE index when working "
// part. trigger an exception if
// we can't find a set for this
// particular fe_index
- const unsigned int starting_offset = dof_handler.vertex_dofs_offsets[vertex_index];
+ const types::global_dof_index starting_offset = dof_handler.vertex_dofs_offsets[vertex_index];
const types::global_dof_index *pointer = &dof_handler.vertex_dofs[starting_offset];
while (true)
{
Assert (pointer <= &dof_handler.vertex_dofs.back(), ExcInternalError());
- Assert((*pointer)<std::numeric_limits<unsigned int>::max(), ExcInternalError());
+ Assert((*pointer)<std::numeric_limits<types::global_dof_index>::max(), ExcInternalError());
const unsigned int this_fe_index = static_cast<unsigned int>(*pointer);
Assert (this_fe_index != numbers::invalid_unsigned_int,
std::vector<types::global_dof_index> &dof_indices,
const unsigned int fe_index) const
{
- for (unsigned int i=0; i<dof_indices.size(); ++i)
+ for (types::global_dof_index i=0; i<dof_indices.size(); ++i)
dof_indices[i]
= dealii::internal::DoFAccessor::Implementation::get_vertex_dof_index (
*dof_handler,
if (line_index >= lines_cache.size())
lines_cache.resize (std::max(2*static_cast<size_type>(lines_cache.size()),
line_index+1),
- numbers::invalid_unsigned_int);
+ numbers::invalid_size_type);
// push a new line to the end of the
// list
const size_type line_index = calculate_line_index(index);
return ((line_index < lines_cache.size())
&&
- (lines_cache[line_index] != numbers::invalid_unsigned_int));
+ (lines_cache[line_index] != numbers::invalid_size_type));
}
#if deal_II_dimension < 3
template void count_dofs_per_block (
const DoFHandler<deal_II_dimension,deal_II_dimension+1>&,
- std::vector<std::vector<types::global_dof_index> >&, std::vector<types::global_dof_index>);
+ std::vector<std::vector<types::global_dof_index> >&, std::vector<unsigned int>);
#endif
#if deal_II_dimension == 3
template void count_dofs_per_block (
const DoFHandler<1,3>&,
- std::vector<std::vector<types::global_dof_index> >&, std::vector<types::global_dof_index>);
+ std::vector<std::vector<types::global_dof_index> >&, std::vector<unsigned int>);
#endif
\}
}