* overall size of the index
* range.
*/
- IndexSet (const unsigned int size);
+ IndexSet (const types::global_dof_index size);
/**
* Remove all indices from this
* index is an element of the
* index set.
*/
- bool is_element (const unsigned int index) const;
+ bool is_element (const types::global_dof_index index) const;
/**
* Return whether the index set
* Return the number of elements
* stored in this index set.
*/
- unsigned int n_elements () const;
+ types::global_dof_index n_elements () const;
/**
* Return the global index of the local
* local_index obviously needs to be less
* than n_elements().
*/
- unsigned int nth_index_in_set (const unsigned int local_index) const;
+ types::global_dof_index nth_index_in_set (const unsigned int local_index) const;
/**
* Return the how-manyth element of this
* a member of this index set, i.e. if
* is_element(global_index) is false.
*/
- unsigned int index_within_set (const unsigned int global_index) const;
+ unsigned int index_within_set (const types::global_dof_index global_index) const;
/**
* Each index set can be
* to the range <tt>[0,
* end-begin)</tt>.
*/
- IndexSet get_view (const unsigned int begin,
- const unsigned int end) const;
+ IndexSet get_view (const types::global_dof_index begin,
+ const types::global_dof_index end) const;
/**
* Fills the given vector with all
* indices contained in this IndexSet.
*/
- void fill_index_vector(std::vector<unsigned int> & indices) const;
+ void fill_index_vector(std::vector<types::global_dof_index> & indices) const;
/**
* Fill the given vector with either
*/
struct Range
{
- unsigned int begin;
- unsigned int end;
+ types::global_dof_index begin;
+ types::global_dof_index end;
- unsigned int nth_index_in_set;
+ types::global_dof_index nth_index_in_set;
/**
* Default constructor. Since there is no useful choice for
* @param i1 Left end point of the interval.
* @param i2 First index greater than the last index of the indicated range.
**/
- Range (const unsigned int i1,
- const unsigned int i2);
+ Range (const types::global_dof_index i1,
+ const types::global_dof_index i2);
friend
inline bool operator< (const Range &range_1,
inline
-IndexSet::Range::Range (const unsigned int i1,
- const unsigned int i2)
+IndexSet::Range::Range (const types::global_dof_index i1,
+ const types::global_dof_index i2)
:
begin(i1),
end(i2)
inline
-IndexSet::IndexSet (const unsigned int size)
+IndexSet::IndexSet (const types::global_dof_index size)
:
is_compressed (true),
index_space_size (size),
inline
void
-IndexSet::add_range (const unsigned int begin,
- const unsigned int end)
+IndexSet::add_range (const types::global_dof_index begin,
+ const types::global_dof_index end)
{
Assert ((begin < index_space_size)
||
inline
void
-IndexSet::add_index (const unsigned int index)
+IndexSet::add_index (const types::global_dof_index index)
{
Assert (index < index_space_size,
ExcIndexRange (index, 0, index_space_size));
// range
for (ForwardIterator p=begin; p!=end;)
{
- const unsigned int begin_index = *p;
- unsigned int end_index = begin_index + 1;
+ const types::global_dof_index begin_index = *p;
+ types::global_dof_index end_index = begin_index + 1;
ForwardIterator q = p;
++q;
while ((q != end) && (*q == end_index))
inline
bool
-IndexSet::is_element (const unsigned int index) const
+IndexSet::is_element (const types::global_dof_index index) const
{
if (ranges.empty() == false)
{
inline
-unsigned int
+types::global_dof_index
IndexSet::n_elements () const
{
// make sure we have
inline
unsigned int
-IndexSet::nth_index_in_set (const unsigned int n) const
+IndexSet::nth_index_in_set (const types::global_dof_index n) const
{
// to make this call thread-safe, compress()
// must not be called through this function
inline
-unsigned int
+types::global_dof_index
IndexSet::index_within_set (const unsigned int n) const
{
// to make this call thread-safe, compress()
* the degrees of freedom of each
* hex in the @p hex_dofs array.
*/
- std::vector<unsigned int> dof_offsets;
+ std::vector<types::global_dof_index> dof_offsets;
/**
* Store the global indices of
* DoFLevel() for detailed
* information.
*/
- std::vector<unsigned int> dofs;
+ std::vector<types::global_dof_index > dofs;
/**
* Set the global index of
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const unsigned int global_index,
+ const types::global_dof_index global_index,
const unsigned int obj_level);
/**
* information.
*/
template <int dimm, int spacedim>
- unsigned int
+ types::global_dof_index
get_dof_index (const dealii::hp::DoFHandler<dimm,spacedim> &dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
template <int dim>
template <int dimm, int spacedim>
inline
- unsigned int
+ types::global_dof_index
DoFObjects<dim>::
get_dof_index (const dealii::hp::DoFHandler<dimm,spacedim> &dof_handler,
const unsigned int obj_index,
// an exception if we can't
// find a set for this
// particular fe_index
- const unsigned int starting_offset = dof_offsets[obj_index];
+ const type::global_dof_index starting_offset = dof_offsets[obj_index];
const unsigned int *pointer = &dofs[starting_offset];
while (true)
{
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const unsigned int global_index,
+ const types::global_dof_index global_index,
const unsigned int obj_level)
{
Assert ((fe_index != dealii::hp::DoFHandler<dimm,spacedim>::default_fe_index),
// an exception if we can't
// find a set for this
// particular fe_index
- const unsigned int starting_offset = dof_offsets[obj_index];
+ const types::global_dof_index starting_offset = dof_offsets[obj_index];
unsigned int *pointer = &dofs[starting_offset];
while (true)
{
// find a set for this
// particular fe_index
const unsigned int starting_offset = dof_offsets[obj_index];
- const unsigned int *pointer = &dofs[starting_offset];
+ const types::global_dof_index *pointer = &dofs[starting_offset];
unsigned int counter = 0;
while (true)
{
template <int dim>
template <int dimm, int spacedim>
inline
- unsigned int
+ types::global_dof_index
DoFObjects<dim>::
nth_active_fe_index (const dealii::hp::DoFHandler<dimm,spacedim> &dof_handler,
const unsigned int obj_level,
// find a set for this
// particular fe_index
const unsigned int starting_offset = dof_offsets[obj_index];
- const unsigned int *pointer = &dofs[starting_offset];
+ const types::global_dof_index *pointer = &dofs[starting_offset];
unsigned int counter = 0;
while (true)
{
// find a set for this
// particular fe_index
const unsigned int starting_offset = dof_offsets[obj_index];
- const unsigned int *pointer = &dofs[starting_offset];
+ const types::global_dof_index *pointer = &dofs[starting_offset];
while (true)
{
if (*pointer == numbers::invalid_unsigned_int)