</p>
<ol>
-<li> Nothing so far.
+<li> Changed: the optional argument offset got removed from
+DoFHandler and MGDoFHandler::distribute_dofs() because it was
+never working correctly and it is not used.
+<br>
+(Timo Heister, 2012/09/03)
+
</ol>
* is first discussed in the introduction
* to the step-2 tutorial program.
*
- * The additional optional
- * parameter @p offset allows you
- * to reserve space for a finite
- * number of additional vector
- * entries in the beginning of
- * all discretization vectors, by
- * starting the enumeration of
- * degrees of freedom on the grid
- * at a nonzero value. By
- * default, this value is of
- * course zero.
- *
* A pointer of the transferred
* finite element is
* stored. Therefore, the
* releases the lock of this
* object to the finite element.
*/
- virtual void distribute_dofs (const FiniteElement<dim,spacedim> &fe,
- const unsigned int offset = 0);
+ virtual void distribute_dofs (const FiniteElement<dim,spacedim> &fe);
/**
* After distribute_dofs() with
*/
virtual
NumberCache
- distribute_dofs (const unsigned int offset,
- dealii::DoFHandler<dim,spacedim> &dof_handler) const = 0;
+ distribute_dofs (dealii::DoFHandler<dim,spacedim> &dof_handler) const = 0;
/**
* Renumber degrees of freedom as
*/
virtual
NumberCache
- distribute_dofs (const unsigned int offset,
- dealii::DoFHandler<dim,spacedim> &dof_handler) const;
+ distribute_dofs (dealii::DoFHandler<dim,spacedim> &dof_handler) const;
/**
* Renumber degrees of freedom as
*/
virtual
NumberCache
- distribute_dofs (const unsigned int offset,
- dealii::DoFHandler<dim,spacedim> &dof_handler) const;
+ distribute_dofs (dealii::DoFHandler<dim,spacedim> &dof_handler) const;
/**
* Renumber degrees of freedom as
* A copy of the transferred
* finite element is stored.
*/
- virtual void distribute_dofs (const FiniteElement<dim,spacedim> &,
- const unsigned int offset = 0);
+ virtual void distribute_dofs (const FiniteElement<dim,spacedim> &);
/**
* Clear all data of this object
template<int dim, int spacedim>
void DoFHandler<dim,spacedim>::
-distribute_dofs (const FiniteElement<dim,spacedim> &ff,
- const unsigned int offset)
+distribute_dofs (const FiniteElement<dim,spacedim> &ff)
{
selected_fe = &ff;
internal::DoFHandler::Implementation::reserve_space (*this);
// hand things off to the policy
- number_cache = policy->distribute_dofs (offset,
- *this);
+ number_cache = policy->distribute_dofs (*this);
// initialize the block info object
// only if this is a sequential
template <int dim, int spacedim>
NumberCache
Sequential<dim,spacedim>::
- distribute_dofs (const unsigned int offset,
- DoFHandler<dim,spacedim> &dof_handler) const
+ distribute_dofs (DoFHandler<dim,spacedim> &dof_handler) const
{
const unsigned int n_dofs =
- Implementation::distribute_dofs (offset,
+ Implementation::distribute_dofs (0,
types::invalid_subdomain_id,
dof_handler);
template <int dim, int spacedim>
NumberCache
ParallelDistributed<dim, spacedim>::
- distribute_dofs (const unsigned int offset,
- DoFHandler<dim,spacedim> &dof_handler) const
+ distribute_dofs (DoFHandler<dim,spacedim> &dof_handler) const
{
- Assert(offset==0, ExcNotImplemented());
NumberCache number_cache;
#ifndef DEAL_II_USE_P4EST
template <int dim, int spacedim>
-void MGDoFHandler<dim,spacedim>::distribute_dofs (const FiniteElement<dim,spacedim> &fe,
- const unsigned int offset)
+void MGDoFHandler<dim,spacedim>::distribute_dofs (const FiniteElement<dim,spacedim> &fe)
{
// first distribute global dofs
DoFHandler<dim,spacedim>::distribute_dofs (fe);
// separately
for (unsigned int level=0; level<this->get_tria().n_levels(); ++level)
{
- unsigned int next_free_dof = offset;
+ unsigned int next_free_dof = 0;
cell_iterator cell = begin(level),
endc = end(level);