// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
ExcDimensionMismatch(fe->n_components(), 1));
Assert (values.size() == n_quadrature_points,
ExcDimensionMismatch(values.size(), n_quadrature_points));
+ Assert (present_cell.get() != 0,
+ ExcMessage ("FEValues object is not reinit'ed to any cell"));
Assert (fe_function.size() == present_cell->n_dofs_for_dof_handler(),
- ExcDimensionMismatch(fe_function.size(), present_cell->n_dofs_for_dof_handler()));
+ ExcDimensionMismatch(fe_function.size(),
+ present_cell->n_dofs_for_dof_handler()));
// get function values of dofs
// on this cell
// ExcDimensionMismatch(fe_function.size(),
// present_cell->get_dof_handler().n_dofs()));
// One entry per quadrature point
+ Assert (present_cell.get() != 0,
+ ExcMessage ("FEValues object is not reinit'ed to any cell"));
Assert (values.size() == n_quadrature_points,
ExcDimensionMismatch(values.size(), n_quadrature_points));
ExcDimensionMismatch(fe->n_components(), 1));
Assert (gradients.size() == n_quadrature_points,
ExcDimensionMismatch(gradients.size(), n_quadrature_points));
+ Assert (present_cell.get() != 0,
+ ExcMessage ("FEValues object is not reinit'ed to any cell"));
Assert (fe_function.size() == present_cell->n_dofs_for_dof_handler(),
- ExcDimensionMismatch(fe_function.size(), present_cell->n_dofs_for_dof_handler()));
+ ExcDimensionMismatch(fe_function.size(),
+ present_cell->n_dofs_for_dof_handler()));
// get function values of dofs
// on this cell
}
+
template <int dim>
template <class InputVector>
void FEValuesBase<dim>::get_function_grads (
ExcDimensionMismatch(gradients[i].size(), n_components));
Assert (this->update_flags & update_gradients, ExcAccessToUninitializedField());
+ Assert (present_cell.get() != 0,
+ ExcMessage ("FEValues object is not reinit'ed to any cell"));
Assert (fe_function.size() == present_cell->n_dofs_for_dof_handler(),
- ExcDimensionMismatch(fe_function.size(), present_cell->n_dofs_for_dof_handler()));
+ ExcDimensionMismatch(fe_function.size(),
+ present_cell->n_dofs_for_dof_handler()));
// get function values of dofs
// on this cell
Assert (second_derivatives.size() == n_quadrature_points,
ExcDimensionMismatch(second_derivatives.size(), n_quadrature_points));
Assert (this->update_flags & update_second_derivatives, ExcAccessToUninitializedField());
+ Assert (present_cell.get() != 0,
+ ExcMessage ("FEValues object is not reinit'ed to any cell"));
Assert (fe_function.size() == present_cell->n_dofs_for_dof_handler(),
- ExcDimensionMismatch(fe_function.size(), present_cell->n_dofs_for_dof_handler()));
+ ExcDimensionMismatch(fe_function.size(),
+ present_cell->n_dofs_for_dof_handler()));
// get function values of dofs
// on this cell
ExcDimensionMismatch(second_derivs[i].size(), n_components));
Assert (this->update_flags & update_second_derivatives, ExcAccessToUninitializedField());
+ Assert (present_cell.get() != 0,
+ ExcMessage ("FEValues object is not reinit'ed to any cell"));
Assert (fe_function.size() == present_cell->n_dofs_for_dof_handler(),
- ExcDimensionMismatch(fe_function.size(), present_cell->n_dofs_for_dof_handler()));
+ ExcDimensionMismatch(fe_function.size(),
+ present_cell->n_dofs_for_dof_handler()));
// get function values of dofs
// on this cell