return mg_number_cache.size()>0;
}
+
+
template <int dim, int spacedim>
inline
bool
return number_cache.n_global_dofs>0;
}
+
+
template <int dim, int spacedim>
inline
types::global_dof_index
return number_cache.n_global_dofs;
}
+
+
template<int dim, int spacedim>
inline
types::global_dof_index DoFHandler<dim, spacedim>::n_dofs (const unsigned int level) const
}
+
template <int dim, int spacedim>
unsigned int
DoFHandler<dim, spacedim>::n_locally_owned_dofs() const
}
+
template <int dim, int spacedim>
const IndexSet &
DoFHandler<dim, spacedim>::locally_owned_dofs() const
return number_cache.locally_owned_dofs;
}
+
+
template <int dim, int spacedim>
const IndexSet &
DoFHandler<dim, spacedim>::locally_owned_mg_dofs(const unsigned int level) const
{
- Assert(level < this->get_triangulation().n_global_levels(), ExcMessage("invalid level in locally_owned_mg_dofs"));
+ Assert(level < this->get_triangulation().n_global_levels(),
+ ExcMessage("invalid level in locally_owned_mg_dofs"));
return mg_number_cache[level].locally_owned_dofs;
}
+
+
template <int dim, int spacedim>
const std::vector<types::global_dof_index> &
DoFHandler<dim, spacedim>::n_locally_owned_dofs_per_processor() const
}
+
template <int dim, int spacedim>
const std::vector<IndexSet> &
DoFHandler<dim, spacedim>::locally_owned_dofs_per_processor () const
return number_cache.locally_owned_dofs_per_processor;
}
+
+
template <int dim, int spacedim>
const std::vector<IndexSet> &
DoFHandler<dim, spacedim>::locally_owned_mg_dofs_per_processor (const unsigned int level) const
}
+
template <int dim, int spacedim>
inline
const FiniteElement<dim,spacedim> &
DoFHandler<dim,spacedim>::get_fe () const
{
- Assert(selected_fe!=nullptr, ExcMessage("You are trying to access the DoFHandler's FiniteElement object before it has been initialized."));
+ Assert(selected_fe!=nullptr,
+ ExcMessage("You are trying to access the DoFHandler's FiniteElement object before it has been initialized."));
return *selected_fe;
}
}
+
template <int dim, int spacedim>
template <typename number>
types::global_dof_index
}
+
template <int dim, int spacedim>
template <class Archive>
void DoFHandler<dim,spacedim>::save (Archive &ar,
}
+
template <int dim, int spacedim>
template <class Archive>
void DoFHandler<dim,spacedim>::load (Archive &ar,
}
-template<int dim, int spacedim>
+
+
+template <int dim, int spacedim>
inline
-types::global_dof_index DoFHandler<dim, spacedim>::MGVertexDoFs::get_index (
- const unsigned int level,
- const unsigned int dof_number) const
+types::global_dof_index
+DoFHandler<dim, spacedim>::MGVertexDoFs::get_index (const unsigned int level,
+ const unsigned int dof_number) const
{
Assert ((level >= coarsest_level) && (level <= finest_level), ExcInvalidLevel (level));
return indices[indices_offset[level - coarsest_level] + dof_number];
}
+
template<int dim, int spacedim>
inline
-void DoFHandler<dim, spacedim>::MGVertexDoFs::set_index (
- const unsigned int level,
- const unsigned int dof_number,
- const types::global_dof_index index)
+void
+DoFHandler<dim, spacedim>::MGVertexDoFs::set_index (const unsigned int level,
+ const unsigned int dof_number,
+ const types::global_dof_index index)
{
Assert ((level >= coarsest_level) && (level <= finest_level), ExcInvalidLevel (level));
indices[indices_offset[level - coarsest_level] + dof_number] = index;
}
+
#endif // DOXYGEN
DEAL_II_NAMESPACE_CLOSE
<< "You tried to do something on level " << arg1
<< ", but this level is empty.");
- protected:
+ private:
/**
* Address of the triangulation to work on.
}
+
template <int dim, int spacedim>
inline
types::global_dof_index
}
+
template <int dim, int spacedim>
types::global_dof_index
DoFHandler<dim, spacedim>::n_locally_owned_dofs() const
}
+
template <int dim, int spacedim>
const IndexSet &
DoFHandler<dim, spacedim>::locally_owned_dofs() const
}
+
template <int dim, int spacedim>
const std::vector<types::global_dof_index> &
DoFHandler<dim, spacedim>::n_locally_owned_dofs_per_processor() const
}
+
template <int dim, int spacedim>
const std::vector<IndexSet> &
DoFHandler<dim, spacedim>::locally_owned_dofs_per_processor () const