#include <deal.II/lac/vector.h>
#include <deal.II/grid/filtered_iterator.h>
#ifdef _MSC_VER
-#include <deal.II/dofs/dof_accessor.h>
+# include <deal.II/dofs/dof_accessor.h>
#endif
#include <utility>
/**
* Exception
*/
- DeclException2 (ExcInvalidVectorLength,
+ DeclException2 (ExcVectorLengthVsNActiveCells,
int, int,
- << "Vector has length " << arg1 << ", but should have "
- << arg2);
+ << "The output vector needs to have a size equal "
+ "to the number of active cells of your triangulation "
+ "but has length " << arg1 << "There are "
+ << arg2 << " active cells in your triangulation.");
/**
* Exception
*/
- DeclException0 (ExcInsufficientDirections);
+ DeclExceptionMsg (ExcInsufficientDirections,
+ "We have encountered a cell on which the number of linearly "
+ "independent directions that span the matrix Y (discussed "
+ "in the documentation of the DerivativeApproximation "
+ "class) is not equal to dim. The matrix Y then is "
+ "rank deficient and can not be inverted.");
}
Vector<float> &derivative_norm)
{
Assert (derivative_norm.size() == dof_handler.get_tria().n_active_cells(),
- ExcInvalidVectorLength (derivative_norm.size(),
- dof_handler.get_tria().n_active_cells()));
+ ExcVectorLengthVsNActiveCells (derivative_norm.size(),
+ dof_handler.get_tria().n_active_cells()));
Assert (component < dof_handler.get_fe().n_components(),
ExcIndexRange (component, 0, dof_handler.get_fe().n_components()));