~ubuntu-branches/ubuntu/wily/dolfin/wily-proposed

« back to all changes in this revision

Viewing changes to dolfin/fem/VariationalProblem.h

  • Committer: Package Import Robot
  • Author(s): Johannes Ring
  • Date: 2014-09-22 14:35:34 UTC
  • mfrom: (1.1.17) (19.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20140922143534-0yi89jyuqbgdxwm9
Tags: 1.4.0+dfsg-4
* debian/control: Disable libcgal-dev on i386, mipsel and sparc.
* debian/rules: Remove bad directives in pkg-config file dolfin.pc
  (closes: #760658).
* Remove debian/libdolfin-dev.lintian-overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2008-2011 Anders Logg and Garth N. Wells
2
 
//
3
 
// This file is part of DOLFIN.
4
 
//
5
 
// DOLFIN is free software: you can redistribute it and/or modify
6
 
// it under the terms of the GNU Lesser General Public License as published by
7
 
// the Free Software Foundation, either version 3 of the License, or
8
 
// (at your option) any later version.
9
 
//
10
 
// DOLFIN is distributed in the hope that it will be useful,
11
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
 
// GNU Lesser General Public License for more details.
14
 
//
15
 
// You should have received a copy of the GNU Lesser General Public License
16
 
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17
 
//
18
 
// Modified by Marie E. Rognes 2011
19
 
//
20
 
// First added:  2008-12-26
21
 
// Last changed: 2011-03-11
22
 
 
23
 
#ifndef __VARIATIONAL_PROBLEM_H
24
 
#define __VARIATIONAL_PROBLEM_H
25
 
 
26
 
#include <vector>
27
 
#include <boost/shared_ptr.hpp>
28
 
 
29
 
namespace dolfin
30
 
{
31
 
 
32
 
  class BoundaryCondition;
33
 
  class ErrorControl;
34
 
  class Form;
35
 
  class Function;
36
 
  class FunctionSpace;
37
 
  class GoalFunctional;
38
 
  template<typename T> class MeshFunction;
39
 
 
40
 
  /// This class is deprecated and is only here to give an informative error
41
 
  /// message to users about the new interface.
42
 
 
43
 
  class VariationalProblem
44
 
  {
45
 
  public:
46
 
 
47
 
    /// Deprecated
48
 
    VariationalProblem(const Form& form_0,
49
 
                       const Form& form_1);
50
 
 
51
 
    /// Deprecated
52
 
    VariationalProblem(const Form& form_0,
53
 
                       const Form& form_1,
54
 
                       const BoundaryCondition& bc);
55
 
 
56
 
    /// Deprecated
57
 
    VariationalProblem(const Form& form_0,
58
 
                       const Form& form_1,
59
 
                       const std::vector<const BoundaryCondition*> bcs);
60
 
 
61
 
    /// Deprecated
62
 
    VariationalProblem(boost::shared_ptr<const Form> form_0,
63
 
                       boost::shared_ptr<const Form> form_1,
64
 
                       std::vector<boost::shared_ptr<const BoundaryCondition> > bcs);
65
 
 
66
 
    /// Destructor
67
 
    ~VariationalProblem();
68
 
 
69
 
    /// Deprecated
70
 
    void solve(Function& u) const;
71
 
 
72
 
    /// Deprecated
73
 
    void solve(Function& u0, Function& u1) const;
74
 
 
75
 
    /// Deprecated
76
 
    void solve(Function& u0, Function& u1, Function& u2) const;
77
 
 
78
 
    /// Deprecated
79
 
    void solve(Function& u, const double tol, GoalFunctional& M) const;
80
 
 
81
 
    /// Deprecated
82
 
    void solve(Function& u, const double tol, Form& M, ErrorControl& ec) const;
83
 
 
84
 
  private:
85
 
 
86
 
    // Common error message
87
 
    void error_message() const;
88
 
 
89
 
  };
90
 
 
91
 
}
92
 
 
93
 
#endif