const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_line_index_offset[this->present_index];
- return this->dof_handler->levels[this->present_level]
- ->line_dofs[offset+i];
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->line_dofs.size(),
+ ExcInternalError());
+
+ return this->dof_handler->levels[this->present_level]->line_dofs[offset+i];
}
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_line_index_offset[this->present_index];
- return this->dof_handler->levels[this->present_level]
- ->line_dofs[offset+i];
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->line_dofs.size(),
+ ExcInternalError());
+
+ return this->dof_handler->levels[this->present_level]->line_dofs[offset+i];
}
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_line_index_offset[this->present_index];
- return this->dof_handler->levels[this->present_level]
- ->line_dofs[offset+i];
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->line_dofs.size(),
+ ExcInternalError());
+
+ return this->dof_handler->levels[this->present_level]->line_dofs[offset+i];
}
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_line_index_offset[this->present_index];
- this->dof_handler->levels[this->present_level]
- ->line_dofs[offset+i] = index;
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->line_dofs.size(),
+ ExcInternalError());
+
+ this->dof_handler->levels[this->present_level]->line_dofs[offset+i] = index;
}
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_line_index_offset[this->present_index];
- this->dof_handler->levels[this->present_level]
- ->line_dofs[offset+i] = index;
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->line_dofs.size(),
+ ExcInternalError());
+
+ this->dof_handler->levels[this->present_level]->line_dofs[offset+i] = index;
}
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_line_index_offset[this->present_index];
- this->dof_handler->levels[this->present_level]
- ->line_dofs[offset+i] = index;
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->line_dofs.size(),
+ ExcInternalError());
+
+ this->dof_handler->levels[this->present_level]->line_dofs[offset+i] = index;
}
{
return (*dof_handler->finite_elements)[active_fe_index ()];
}
+
+
+
template <>
inline
const FiniteElement<2> &
{
return (*dof_handler->finite_elements)[active_fe_index ()];
}
+
+
+
template <>
inline
const FiniteElement<3> &
}
+
template <>
inline
unsigned int
return dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
+
+
+
template <>
inline
unsigned int
return dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index];
}
+
+
+
template <>
inline
unsigned int
}
+
template <>
inline
void
dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}
+
+
+
template <>
inline
void
dof_handler->levels[this->present_level]
->active_fe_indices[this->present_index] = i;
}
+
+
+
template <>
inline
void
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_quad_index_offset[this->present_index];
- return this->dof_handler->levels[this->present_level]
- ->quad_dofs[offset+i];
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->quad_dofs.size(),
+ ExcInternalError());
+
+ return this->dof_handler->levels[this->present_level]->quad_dofs[offset+i];
}
+
+
template <>
inline
unsigned int DoFObjectAccessor<2,hp::DoFHandler<3> >::dof_index (const unsigned int i) const
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_quad_index_offset[this->present_index];
- return this->dof_handler->levels[this->present_level]
- ->quad_dofs[offset+i];
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->quad_dofs.size(),
+ ExcInternalError());
+
+ return this->dof_handler->levels[this->present_level]->quad_dofs[offset+i];
}
+
template <>
inline
void
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_quad_index_offset[this->present_index];
- this->dof_handler->levels[this->present_level]
- ->quad_dofs[offset+i] = index;
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->quad_dofs.size(),
+ ExcInternalError());
+
+ this->dof_handler->levels[this->present_level]->quad_dofs[offset+i] = index;
}
+
template <>
inline
void
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_quad_index_offset[this->present_index];
- this->dof_handler->levels[this->present_level]
- ->quad_dofs[offset+i] = index;
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->quad_dofs.size(),
+ ExcInternalError());
+
+ this->dof_handler->levels[this->present_level]->quad_dofs[offset+i] = index;
}
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_hex_index_offset[this->present_index];
- return this->dof_handler->levels[this->present_level]
- ->hex_dofs[offset+i];
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->hex_dofs.size(),
+ ExcInternalError());
+
+ return this->dof_handler->levels[this->present_level]->hex_dofs[offset+i];
}
const unsigned int offset = this->dof_handler->levels[this->present_level]
->dof_hex_index_offset[this->present_index];
- this->dof_handler->levels[this->present_level]
- ->hex_dofs[offset+i] = index;
+ Assert (offset != this->dof_handler->invalid_dof_index,
+ ExcInternalError());
+ Assert (offset+i <
+ this->dof_handler->levels[this->present_level]->hex_dofs.size(),
+ ExcInternalError());
+
+ this->dof_handler->levels[this->present_level]->hex_dofs[offset+i] = index;
}