DOLFIN
DOLFIN C++ interface
dolfin
fem
solve.h
1
// Copyright (C) 2011 Anders Logg
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
// First added: 2011-06-22
19
// Last changed: 2012-11-09
20
21
#ifndef __SOLVE_FEM_H
22
#define __SOLVE_FEM_H
23
24
#include <vector>
25
#include <dolfin/parameter/Parameters.h>
26
27
namespace
dolfin
28
{
29
30
// Forward declarations
31
class
Equation;
32
class
Function;
33
class
DirichletBC;
34
class
Form;
35
36
//--- Linear / nonlinear problems (no Jacobian specified) ---
37
43
void
solve
(
const
Equation& equation,
44
Function& u,
45
Parameters
parameters
=
empty_parameters
);
46
52
void
solve
(
const
Equation& equation,
53
Function& u,
54
const
DirichletBC& bc,
55
Parameters
parameters
=
empty_parameters
);
56
62
void
solve
(
const
Equation& equation,
63
Function& u,
64
std::vector<const DirichletBC*> bcs,
65
Parameters
parameters
=
empty_parameters
);
66
67
//--- Nonlinear problems (Jacobian specified) ---
68
75
void
solve
(
const
Equation& equation,
76
Function& u,
77
const
Form& J,
78
Parameters
parameters
=
empty_parameters
);
79
86
void
solve
(
const
Equation& equation,
87
Function& u,
88
const
DirichletBC& bc,
89
const
Form& J,
90
Parameters
parameters
=
empty_parameters
);
91
98
void
solve
(
const
Equation& equation,
99
Function& u,
100
std::vector<const DirichletBC*> bcs,
101
const
Form& J,
102
Parameters
parameters
=
empty_parameters
);
103
104
}
105
106
#endif
dolfin::solve
void solve(const Equation &equation, Function &u, const double tol, GoalFunctional &M)
Definition:
adaptivesolve.cpp:33
dolfin::parameters
GlobalParameters parameters
The global parameter database.
Definition:
GlobalParameters.cpp:32
dolfin
Definition:
adapt.h:30
dolfin::empty_parameters
Parameters empty_parameters("empty")
Default empty parameters.
Definition:
Parameters.h:321
Generated by
1.8.20