DoFAccessor<DH>::set_dof_handler (DH *dh)
{
Assert (dh != 0, ExcInvalidObject());
- dof_handler = dh;
+ this->dof_handler = dh;
}
bool
DoFAccessor<DH>::operator == (const DoFAccessor<DH> &a) const
{
- Assert (dof_handler == a.dof_handler, ExcCantCompareIterators());
+ Assert (this->dof_handler == a.dof_handler, ExcCantCompareIterators());
// there is no real data to compare, except
- // to make sure that the dof_handler
+ // to make sure that the this->dof_handler
// objects in use are the same
return true;
}
bool
DoFAccessor<DH>::operator != (const DoFAccessor<DH> &a) const
{
- Assert (dof_handler == a.dof_handler, ExcCantCompareIterators());
+ Assert (this->dof_handler == a.dof_handler, ExcCantCompareIterators());
// there is no real data to compare, except
- // to make sure that the dof_handler
+ // to make sure that the this->dof_handler
// objects in use are the same. this is
// checked above, and apart from this there
// is no reason for us to believe that the
unsigned int
DoFObjectAccessor<1,DH>::dof_index (const unsigned int i) const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// since the exception classes are
DoFObjectAccessor<1,DH>::vertex_dof_index (const unsigned int vertex,
const unsigned int i) const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// since the exception classes are
void
DoFObjectAccessor<1,DH>::get_dof_indices (std::vector<unsigned int> &dof_indices) const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// since the exception classes are
TriaIterator<DH::dimension,DoFObjectAccessor<1,DH> >
DoFObjectAccessor<1,DH>::child (const unsigned int i) const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
TriaIterator<dim,DoFObjectAccessor<1,DH> > q (this->tria,
typename BaseClass::ExcInvalidObject());
Assert (i<this->get_fe().dofs_per_quad,
ExcIndexRange (i, 0, this->get_fe().dofs_per_quad));
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
return this->dof_handler->levels[this->present_level]
Assert (vertex<4, ExcIndexRange (i,0,4));
Assert (i<this->get_fe().dofs_per_vertex,
ExcIndexRange (i, 0, this->get_fe().dofs_per_vertex));
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int dof_number = (this->vertex_index(vertex) *
4*this->get_fe().dofs_per_vertex),
typename BaseClass::ExcNotActive());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int dofs_per_vertex = this->get_fe().dofs_per_vertex,
DoFObjectAccessor<2,DH>::line (const unsigned int i) const
{
Assert (i<4, ExcIndexRange (i, 0, 4));
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
return TriaIterator<dim,DoFObjectAccessor<1,DH> >
TriaIterator<DH::dimension,DoFObjectAccessor<2,DH> >
DoFObjectAccessor<2,DH>::child (const unsigned int i) const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
TriaIterator<dim,DoFObjectAccessor<2,DH> > q (this->tria,
Assert (this->dof_handler->n_dofs() == global_destination.size(),
typename BaseClass::ExcVectorDoesNotMatch());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int n_dofs = local_source.size();
typename BaseClass::ExcMatrixDoesNotMatch());
Assert (global_destination.m() == global_destination.n(),
typename BaseClass::ExcMatrixDoesNotMatch());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int n_dofs = local_source.m();
typename BaseClass::ExcInvalidObject());
Assert (i<this->get_fe().dofs_per_hex,
ExcIndexRange (i, 0, this->get_fe().dofs_per_hex));
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
return this->dof_handler->levels[this->present_level]
Assert (vertex<8, ExcIndexRange (i,0,8));
Assert (i<this->get_fe().dofs_per_vertex,
ExcIndexRange (i, 0, this->get_fe().dofs_per_vertex));
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int dof_number = (this->vertex_index(vertex) *
6*this->get_fe().dofs_per_quad +
this->get_fe().dofs_per_hex),
typename BaseClass::ExcVectorDoesNotMatch());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// this function really only makes
(this->get_fe().dofs_per_cell ==
8*this->get_fe().dofs_per_vertex),
typename BaseClass::ExcNotActive());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int dofs_per_vertex = this->get_fe().dofs_per_vertex,
typename BaseClass::ExcVectorDoesNotMatch());
Assert (this->dof_handler->n_dofs() == global_destination.size(),
typename BaseClass::ExcVectorDoesNotMatch());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int n_dofs = local_source.size();
typename BaseClass::ExcMatrixDoesNotMatch());
Assert (global_destination.m() == global_destination.n(),
typename BaseClass::ExcMatrixDoesNotMatch());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
const unsigned int n_dofs = local_source.m();
typedef DoFAccessor<hp::DoFHandler<1> > BaseClass;
Assert (this->dof_handler != 0, BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
typedef DoFAccessor<hp::DoFHandler<2> > BaseClass;
Assert (this->dof_handler != 0, BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
typedef DoFAccessor<hp::DoFHandler<3> > BaseClass;
Assert (this->dof_handler != 0, BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
unsigned int
DoFObjectAccessor<1,hp::DoFHandler<1> >::active_fe_index () const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
- return dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+ return this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
unsigned int
DoFObjectAccessor<1,hp::DoFHandler<2> >::active_fe_index () const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
- return dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+ return this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
unsigned int
DoFObjectAccessor<1,hp::DoFHandler<3> >::active_fe_index () const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
- return dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+ return this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
void
DoFObjectAccessor<1,hp::DoFHandler<1> >::set_active_fe_index (const unsigned int i)
{
- Assert (dof_handler != 0, ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (this->dof_handler != 0, ExcInvalidObject());
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
-//TODO: dof_handler->finite_elements not always defined, when this method is called
-// Assert (i < dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
- dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+//TODO: this->dof_handler->finite_elements not always defined, when this method is called
+// Assert (i < this->dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
+ this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}
void
DoFObjectAccessor<1,hp::DoFHandler<2> >::set_active_fe_index (const unsigned int i)
{
- Assert (dof_handler != 0, ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (this->dof_handler != 0, ExcInvalidObject());
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
-//TODO: dof_handler->finite_elements not always defined, when this method is called
-// Assert (i < dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
- dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+//TODO: this->dof_handler->finite_elements not always defined, when this method is called
+// Assert (i < this->dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
+ this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}
void
DoFObjectAccessor<1,hp::DoFHandler<3> >::set_active_fe_index (const unsigned int i)
{
- Assert (dof_handler != 0, ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (this->dof_handler != 0, ExcInvalidObject());
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
-//TODO: dof_handler->finite_elements not always defined, when this method is called
-// Assert (i < dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
- dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+//TODO: this->dof_handler->finite_elements not always defined, when this method is called
+// Assert (i < this->dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
+ this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
unsigned int
DoFObjectAccessor<2,hp::DoFHandler<2> >::active_fe_index () const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
- return dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+ return this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
unsigned int
DoFObjectAccessor<2,hp::DoFHandler<3> >::active_fe_index () const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
- return dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+ return this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
void
DoFObjectAccessor<2,hp::DoFHandler<2> >::set_active_fe_index (const unsigned int i)
{
- Assert (dof_handler != 0, ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (this->dof_handler != 0, ExcInvalidObject());
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
-//TODO: dof_handler->finite_elements not always defined, when this method is called
-// Assert (i < dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
- dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+//TODO: this->dof_handler->finite_elements not always defined, when this method is called
+// Assert (i < this->dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
+ this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}
void
DoFObjectAccessor<2,hp::DoFHandler<3> >::set_active_fe_index (const unsigned int i)
{
- Assert (dof_handler != 0, ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (this->dof_handler != 0, ExcInvalidObject());
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
-//TODO: dof_handler->finite_elements not always defined, when this method is called
-// Assert (i < dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
- dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+//TODO: this->dof_handler->finite_elements not always defined, when this method is called
+// Assert (i < this->dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
+ this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
Assert (this->dof_handler != 0,
BaseClass::ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
// make sure a FE has been selected
// and enough room was reserved
unsigned int
DoFObjectAccessor<3,hp::DoFHandler<3> >::active_fe_index () const
{
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
- return dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+ return this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
void
DoFObjectAccessor<3,hp::DoFHandler<3> >::set_active_fe_index (const unsigned int i)
{
- Assert (dof_handler != 0, ExcInvalidObject());
- Assert (static_cast<unsigned int>(this->present_level) < dof_handler->levels.size(),
+ Assert (this->dof_handler != 0, ExcInvalidObject());
+ Assert (static_cast<unsigned int>(this->present_level) < this->dof_handler->levels.size(),
ExcMessage ("hp::DoFHandler not initialized"));
Assert (static_cast<std::vector<unsigned int>::size_type>(this->present_index) <
- dof_handler->levels[this->present_level]->active_fe_indices.size (),
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size (),
ExcIndexRange (this->present_index, 0,
- dof_handler->levels[this->present_level]->active_fe_indices.size ()));
-//TODO: dof_handler->finite_elements not always defined, when this method is called
-// Assert (i < dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
- dof_handler->levels[this->present_level]
+ this->dof_handler->levels[this->present_level]->active_fe_indices.size ()));
+//TODO: this->dof_handler->finite_elements not always defined, when this method is called
+// Assert (i < this->dof_handler->finite_elements->n_finite_elements (), ExcInvalidObject());
+ this->dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}