// and they are cell-wise scaled by
// the factor $h^{1+d/2}$
- DoFHandler<dim>::active_cell_iterator cell = dof_handler.begin_active(),
- endc = dof_handler.end();
+ typename DoFHandler<dim>::active_cell_iterator
+ cell = dof_handler.begin_active(),
+ endc = dof_handler.end();
for (unsigned int cell_no=0; cell!=endc; ++cell, ++cell_no)
gradient_indicator(cell_no)*=std::pow(cell->diameter(), 1+1.0*dim/2);
// do not use Neumann boundary
// conditions, the map will not
// contain entries.
- FunctionMap<dim>::type neumann_boundary;
+ typename FunctionMap<dim>::type neumann_boundary;
// Now we call the error
// estimator. The parameters should
{
Vector<float> estimated_error_per_cell (triangulation.n_active_cells());
- FunctionMap<dim>::type neumann_boundary;
+ typename FunctionMap<dim>::type neumann_boundary;
KellyErrorEstimator<dim>::estimate (dof_handler,
QGauss2<dim-1>(),
neumann_boundary,
// Now loop over all active
// neighbors and collect the
// data we need.
- typename std::vector<DoFHandler<dim>::active_cell_iterator>::const_iterator
+ typename std::vector<typename DoFHandler<dim>::active_cell_iterator>::const_iterator
neighbor_ptr = active_neighbors.begin();
for (; neighbor_ptr!=active_neighbors.end(); ++neighbor_ptr)
{
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams