Memosa-FVM
0.2
Main Page
Namespaces
Classes
Files
File List
File Members
LinearSolver.h
Go to the documentation of this file.
1
// This file os part of FVM
2
// Copyright (c) 2012 FVM Authors
3
// See LICENSE file for terms.
4
5
#ifndef _LINEARSOLVER_H_
6
#define _LINEARSOLVER_H_
7
8
9
#include <vector>
10
#include "
LinearSystem.h
"
11
#include "
MultiFieldReduction.h
"
12
13
using namespace
std;
14
15
class
LinearSolver
16
{
17
public
:
18
19
LinearSolver
() :
20
nMaxIterations(100),
21
verbosity(2),
22
relativeTolerance(1e-8),
23
absoluteTolerance(1e-50)
24
{}
25
26
virtual
MFRPtr
solve(
LinearSystem
& ls)=0;
27
virtual
void
cleanup()=0;
28
29
virtual
void
smooth(
LinearSystem
& ls) = 0;
30
31
int
nMaxIterations
;
32
int
verbosity
;
33
double
relativeTolerance
;
34
double
absoluteTolerance
;
35
};
36
37
38
#endif
LinearSolver::nMaxIterations
int nMaxIterations
Definition:
LinearSolver.h:31
LinearSolver::relativeTolerance
double relativeTolerance
Definition:
LinearSolver.h:33
MultiFieldReduction.h
LinearSolver::verbosity
int verbosity
Definition:
LinearSolver.h:32
LinearSolver
Definition:
LinearSolver.h:15
LinearSolver::absoluteTolerance
double absoluteTolerance
Definition:
LinearSolver.h:34
LinearSolver::LinearSolver
LinearSolver()
Definition:
LinearSolver.h:19
MFRPtr
shared_ptr< MultiFieldReduction > MFRPtr
Definition:
MultiFieldReduction.h:56
LinearSystem
Definition:
LinearSystem.h:11
LinearSystem.h
src
modules
fvmbase
LinearSolver.h
Generated on Tue Oct 28 2014 17:45:15 for Memosa-FVM by
1.8.6