*/
virtual void vector_laplacian_list (const vector<Point<dim> > &points,
vector<Vector<double> > &values) const;
-
- /**
- * Exception
- */
- DeclException0 (ExcPureFunctionCalled);
- /**
- * Exception
- */
- DeclException2 (ExcVectorHasWrongSize,
- int, int,
- << "The vector has size " << arg1 << " but should have "
- << arg2 << " elements.");
- /**
- * Exception
- */
- DeclException2 (ExcWrongComponent,
- int, int,
- << "Component " << arg1 << " does not exist, as the values "
- << "of this function have only " << arg2 << " components.");
};
// the valid range is up to the
// derived class
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
values[i] = this->value (points[i], component);
// the valid range is up to the
// derived class
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
this->vector_value (points[i], values[i]);
const unsigned int component) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
gradients[i] = gradient(points[i], component);
vector<vector<Tensor<1,dim> > > &gradients) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
{
Assert (gradients[i].size() == n_components,
- ExcVectorHasWrongSize(gradients[i].size(), n_components));
+ ExcDimensionMismatch(gradients[i].size(), n_components));
for (unsigned int component=0; component<n_components; ++component)
gradients[i][component] = gradient(points[i], component);
};
Vector<double> &return_value) const
{
Assert (return_value.size() == n_components,
- ExcVectorHasWrongSize (return_value.size(), n_components));
+ ExcDimensionMismatch (return_value.size(), n_components));
fill_n (return_value.begin(), n_components, 0.0);
};
vector<double> &values,
const unsigned int /*component*/) const {
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
fill_n (values.begin(), points.size(), 0.);
};
vector<Vector<double> > &values) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
{
Assert (values[i].size() == n_components,
- ExcVectorHasWrongSize(values[i].size(), n_components));
+ ExcDimensionMismatch(values[i].size(), n_components));
fill_n (values[i].begin(), n_components, 0.);
};
};
vector<Tensor<1,dim> > &gradients) const
{
Assert (gradients.size() == n_components,
- ExcVectorHasWrongSize(gradients.size(), n_components));
+ ExcDimensionMismatch(gradients.size(), n_components));
for (unsigned int c=0; c<n_components; ++c)
gradients[c].clear ();
const unsigned int /*component*/) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
gradients[i].clear ();
vector<vector<Tensor<1,dim> > > &gradients) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
{
Assert (gradients[i].size() == n_components,
- ExcVectorHasWrongSize(gradients[i].size(), n_components));
+ ExcDimensionMismatch(gradients[i].size(), n_components));
for (unsigned int c=0; c<n_components; ++c)
gradients[i][c].clear ();
};
Vector<double> &return_value) const
{
Assert (return_value.size() == n_components,
- ExcVectorHasWrongSize (return_value.size(), n_components));
+ ExcDimensionMismatch (return_value.size(), n_components));
fill_n (return_value.begin(), n_components, function_value);
};
vector<double> &values,
const unsigned int /*component*/) const {
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
fill_n (values.begin(), points.size(), function_value);
};
vector<Vector<double> > &values) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
{
Assert (values[i].size() == n_components,
- ExcVectorHasWrongSize(values[i].size(), n_components));
+ ExcDimensionMismatch(values[i].size(), n_components));
fill_n (values[i].begin(), n_components, function_value);
};
};
// the valid range is up to the
// derived class
Assert (laplacians.size() == points.size(),
- ExcVectorHasWrongSize(laplacians.size(), points.size()));
+ ExcDimensionMismatch(laplacians.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
laplacians[i] = this->laplacian (points[i], component);
// the valid range is up to the
// derived class
Assert (laplacians.size() == points.size(),
- ExcVectorHasWrongSize(laplacians.size(), points.size()));
+ ExcDimensionMismatch(laplacians.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
this->vector_laplacian (points[i], laplacians[i]);
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
values[i] = 0.;
const unsigned int) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
Assert(false, ExcNotImplemented());
}
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
{
const unsigned int) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0;i<points.size();++i)
values[i] = 0.;
const unsigned int) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
Assert(false, ExcNotImplemented());
}
vector<Tensor<rank,dim> > &values) const
{
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
values[i] = this->value (points[i]);
vector<Tensor<rank+1,dim> > &gradients) const
{
Assert (gradients.size() == points.size(),
- ExcVectorHasWrongSize(gradients.size(), points.size()));
+ ExcDimensionMismatch(gradients.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
gradients[i] = gradient(points[i]);
fi)
if test $enablemultigrid = yes ; then
AC_MSG_RESULT(Configuring multigrid)
+ AC_DEFINE(ENABLE_MULTIGRID)
fi
AC_SUBST(enablemultigrid)
const unsigned int n_points = points.size();
Assert (values.size() == n_points,
- ExcVectorHasWrongSize (values.size(), n_points));
+ ExcDimensionMismatch (values.size(), n_points));
Assert (component == 0,
- ExcWrongComponent (component, 1));
+ ExcIndexRange (component, 0, 1));
for (unsigned int i=0; i<n_points; ++i)
{
*/
virtual void value (const Point<dim> &p,
Vector<double> &values) const {
- Assert (values.size()==1, ExcVectorHasWrongSize (values.size(), 1));
+ Assert (values.size()==1, ExcDimensionMismatch (values.size(), 1));
double x = 1;
vector<double> &values,
const unsigned int component) const {
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
values[i] = BoundaryValuesSine<dim>::value (points[i], component);
};
vector<double> &values,
const unsigned int) const {
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
values[i] = this->Kink::value(points[i], 0);
};
vector<double> &values,
const unsigned int) const {
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
values[i] = this->Gradient::value(points[i], 0);
};
vector<double> &values,
const unsigned int) const {
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
values[i] = this->PreliminaryEarthModel::value(points[i], 0);
};
vector<double> &values,
const unsigned int) const {
Assert (values.size() == points.size(),
- ExcVectorHasWrongSize(values.size(), points.size()));
+ ExcDimensionMismatch(values.size(), points.size()));
for (unsigned int i=0; i<points.size(); ++i)
values[i] = this->Distorted::value(points[i], 0);
};