0.95.0-final
Finite Element Embedded Library and Language in C++
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
solverbase.hpp
Go to the documentation of this file.
1
/* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3
This file is part of the Feel library
4
5
Author(s): Christoph Winkelmann <christoph.winkelmann@epfl.ch>
6
Date: 2004-09-29
7
8
Copyright (C) 2004 EPFL
9
10
This library is free software; you can redistribute it and/or
11
modify it under the terms of the GNU Lesser General Public
12
License as published by the Free Software Foundation; either
13
version 3.0 of the License, or (at your option) any later version.
14
15
This library is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
Lesser General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public
21
License along with this library; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
*/
29
#ifndef SolverBase_H
30
#define SolverBase_H 1
31
32
class
GetPot;
33
34
namespace
Feel
35
{
36
43
class
SolverBase
44
{
45
public
:
46
50
51
typedef
double
value_type;
52
typedef
SolverBase
solver_type
;
53
typedef
Vector
array_type
;
54
56
60
62
virtual
static
SolverBase
*
New
() = 0;
63
65
virtual
~SolverBase
() = 0;
66
68
72
73
virtual
double
residualNorm()
const
= 0;
74
76
80
82
template
<
typename
MatrixType>
83
virtual
void
setMatrix
( MatrixType
const
& newMatrix ) = 0;
84
85
virtual
void
setTolerance(
double
newTolerance ) = 0;
86
88
92
93
/*
94
solve the problem \f$ A x = b \f$
95
96
\c A has been entered via \c setMatrix .
97
98
*/
99
virtual
void
solve(
array_type
& x,
array_type
const
& b ) = 0;
100
102
107
virtual
void
setOptionsFromGetPot
( GetPot
const
& dataFile,
108
std::string section ) = 0;
109
};
110
111
}
112
#endif
/* SolverBase_H */
Generated on Fri Oct 25 2013 14:24:24 for Feel++ by
1.8.4