// $Id$
// Version: $Name$
//
-// Copyright (C) 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
* pointers to the base
* class.
*/
- virtual ~PredicateBase () {};
+ virtual ~PredicateBase () {}
/**
* Abstract function which in
// $Id$
// Version: $Name$
//
-// Copyright (C) 2000, 2001, 2003, 2004, 2005 by the deal.II authors
+// Copyright (C) 2000, 2001, 2003, 2004, 2005, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(2) {};
+ MySquareFunction () : Function<dim>(2) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return 100*(component+1)*p.square()*std::sin(p.square()); };
+ { return 100*(component+1)*p.square()*std::sin(p.square()); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
- { for (unsigned int d=0; d<this->n_components; ++d) values(d) = value(p,d); };
+ { for (unsigned int d=0; d<this->n_components; ++d) values(d) = value(p,d); }
};
//
// Version:
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
class MyFunction : public Function<dim>
{
public:
- MyFunction () : Function<dim>() {};
+ MyFunction () : Function<dim>() {}
virtual double value (const Point<dim> &p,
const unsigned int) const
- { return sin(p[0]*a)*cos(p[1]*b); };
+ { return sin(p[0]*a)*cos(p[1]*b); }
};
template <int dim>
// $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, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
middle(i) += .5;
return middle;
- };
+ }
virtual Point<dim>
middle(i) += .5;
return middle;
- };
+ }
};
// $Id$
// Version: $Name$
//
-// Copyright (C) 2000, 2001, 2003, 2004 by the deal.II authors
+// Copyright (C) 2000, 2001, 2003, 2004, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(2) {};
+ MySquareFunction () : Function<dim>(2) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
{ values(0) = value(p,0);
- values(1) = value(p,1); };
+ values(1) = value(p,1); }
};
// $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, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
middle(i) += .5;
return middle;
- };
+ }
virtual Point<dim>
middle(i) += .5;
return middle;
- };
+ }
};
// $Id$
// Version: $Name$
//
-// Copyright (C) 2000, 2001, 2003, 2004 by the deal.II authors
+// Copyright (C) 2000, 2001, 2003, 2004, 2007 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(2) {};
+ MySquareFunction () : Function<dim>(2) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
{ values(0) = value(p,0);
- values(1) = value(p,1); };
+ values(1) = value(p,1); }
};
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(2) {};
+ MySquareFunction () : Function<dim>(2) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
{
for (unsigned int d=0; d<dim; ++d)
values(d) = value(p,d);
- };
+ }
};
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(dim) {};
+ MySquareFunction () : Function<dim>(dim) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
{
for (unsigned int d=0; d<dim; ++d)
values(d) = value(p,d);
- };
+ }
};
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(1) {};
+ MySquareFunction () : Function<dim>(1) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
{
values(0) = value(p,0);
- };
+ }
};
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(1) {};
+ MySquareFunction () : Function<dim>(1) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
- { values(0) = value(p,0); };
+ { values(0) = value(p,0); }
};
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(2) {};
+ MySquareFunction () : Function<dim>(2) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
{ values(0) = value(p,0);
- values(1) = value(p,1); };
+ values(1) = value(p,1); }
};
class MySquareFunction : public Function<dim>
{
public:
- MySquareFunction () : Function<dim>(1) {};
+ MySquareFunction () : Function<dim>(1) {}
virtual double value (const Point<dim> &p,
const unsigned int component) const
- { return (component+1)*p.square(); };
+ { return (component+1)*p.square(); }
virtual void vector_value (const Point<dim> &p,
Vector<double> &values) const
- { values(0) = value(p,0); };
+ { values(0) = value(p,0); }
};