Commit 751bcc17 authored by Markus Wolff's avatar Markus Wolff
Browse files

added private copy constructor to decoupled problem classes



git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@4176 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent d29f8a59
......@@ -53,6 +53,10 @@ class DiffusionProblem2P: public OneModelProblem<TypeTag, Implementation>
typedef Dune::FieldVector<Scalar, dimWorld> GlobalPosition;
// private!! copy constructor
DiffusionProblem2P(const DiffusionProblem2P&)
{}
public:
DiffusionProblem2P(const GridView &gridView, bool verbose = true) :
ParentType(gridView, verbose), gravity_(0)
......
......@@ -57,6 +57,9 @@ class IMPESProblem2P : public IMPETProblem<TypeTag, Implementation>
typedef Dune::FieldVector<Scalar, dimWorld> GlobalPosition;
IMPESProblem2P(const IMPESProblem2P &)
{}
public:
IMPESProblem2P(const GridView &gridView, bool verbose = true)
: ParentType(gridView, verbose),
......
......@@ -59,6 +59,10 @@ class TransportProblem2P : public OneModelProblem<TypeTag, Implementation>
typedef Dune::FieldVector<Scalar, dimWorld> GlobalPosition;
// private!! copy constructor
TransportProblem2P(const TransportProblem2P&)
{}
public:
TransportProblem2P(const GridView &gridView)
: ParentType(gridView),
......
......@@ -71,6 +71,10 @@ private:
typedef Dune::FieldVector<Scalar,dimWorld> GlobalPosition;
typedef typename GridView::template Codim<dim>::Iterator VertexIterator;
//private!! copy constructor
IMPETProblem(const IMPETProblem&)
{}
public:
//! Constructs an object of type IMPETProblemProblem
......
......@@ -84,6 +84,10 @@ private:
typedef Dune::FieldVector<Scalar,dimWorld> GlobalPosition;
typedef typename GridView::template Codim<dim>::Iterator VertexIterator;
// private!! copy constructor
OneModelProblem(const OneModelProblem&)
{}
public:
//! Constructs an object of type OneModelProblemProblem
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment