const std::vector<types::global_dof_index> &
get_local_dof_indices() const;
+ /**
+ * Return the number of local dof indices for the cell passed the last time
+ * the reinit() function was called.
+ */
+ unsigned int
+ n_dofs_per_cell() const;
+
/** @} */ // CurrentCellMethods
/**
const std::vector<types::global_dof_index> &
get_neighbor_dof_indices() const;
+ /**
+ * Return the number of local dof indices for the neighbor passed the last
+ * time the reinit_neighbor() function was called.
+ */
+ unsigned int
+ n_neighbor_dofs_per_cell() const;
+
/** @} */ // NeighborCellMethods
/**
neighbor_dof_indices.resize(neighbor_fe.n_dofs_per_cell());
cell->get_dof_indices(neighbor_dof_indices);
- cell->get_dof_indices(neighbor_dof_indices);
current_neighbor_fe_values = &neighbor_fe_subface_values;
return neighbor_fe_subface_values;
+ template <int dim, int spacedim>
+ unsigned int
+ ScratchData<dim, spacedim>::n_dofs_per_cell() const
+ {
+ return local_dof_indices.size();
+ }
+
+
+
template <int dim, int spacedim>
const std::vector<types::global_dof_index> &
ScratchData<dim, spacedim>::get_neighbor_dof_indices() const
+ template <int dim, int spacedim>
+ unsigned int
+ ScratchData<dim, spacedim>::n_neighbor_dofs_per_cell() const
+ {
+ return neighbor_dof_indices.size();
+ }
+
+
+
template <int dim, int spacedim>
GeneralDataStorage &
ScratchData<dim, spacedim>::get_general_data_storage()