// ---------------------------------------------------------------------
//
-// Copyright (C) 2003 - 2014 by the deal.II authors
+// Copyright (C) 2003 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
public:
/**
* Constructor. Takes the name of the quadrature rule (one of "gauss",
- * "milne", "weddle", etc) and, if it iss "gauss", the order of the
- * quadrature rule as argument.
+ * "milne", "weddle", etc) and, if it is "gauss", the number of quadrature
+ * points in each coordinate direction.
*/
QuadratureSelector (const std::string &s,
const unsigned int order=0);
*/
DeclException1 (ExcInvalidQGaussOrder,
int,
- << "You tried to generate QGauss with an invalid order of "
- << arg1 << " (must be >= 2)");
+ << "You tried to generate a QGauss object with an invalid "
+ << "number " << arg1
+ << " of quadrature points in each coordinate "
+ << "direction. This number must be greater than or equal "
+ << "to 1.");
/**
* Exception
*/
std::string,
unsigned int,
<< "You tried to generate a " << arg1
- << " object; no order is needed (" << arg2
- << " was given as parameter)");
+ << " object; no order is needed for objects of this kind, but "
+ << arg2 << " was given as argument.");
/**
* Exception
*/
DeclException1 (ExcInvalidQuadrature,
std::string,
<< arg1
- << " is not a valid quadrature name for a quadrature rule");
+ << " is not a valid name for a quadrature rule.");
//@}
private:
/**
// ---------------------------------------------------------------------
//
-// Copyright (C) 2003 - 2014 by the deal.II authors
+// Copyright (C) 2003 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
{
if (s == "gauss")
{
- AssertThrow(order >= 2, ExcInvalidQGaussOrder(order));
+ AssertThrow(order >= 1, ExcInvalidQGaussOrder(order));
return QGauss<dim>(order);
}
else