Memosa-FVM
0.2
Main Page
Namespaces
Classes
Files
File List
File Members
testLinearSolver.cpp
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
#include <string>
6
7
using namespace
std;
8
9
#include "
MMReader.h
"
10
#include "
AMG.h
"
11
#ifdef FVM_PARALLEL
12
#include <mpi.h>
13
#endif
14
15
int
main
(
int
argc,
char
*argv[])
16
{
17
#ifdef FVM_PARALLEL
18
MPI::Init(argc, argv);
19
#endif
20
MMReader
reader(argv[1], argv[2]);
21
22
shared_ptr<LinearSystem> ls(reader.
getLS
());
23
24
AMG
solver;
25
solver.
solve
(*ls);
26
27
return
0;
28
}
MMReader
Definition:
MMReader.h:16
AMG.h
AMG::solve
virtual MFRPtr solve(LinearSystem &ls)
Definition:
AMG.cpp:220
AMG
Definition:
AMG.h:27
MMReader.h
MMReader::getLS
shared_ptr< LinearSystem > getLS()
Definition:
MMReader.cpp:80
main
int main(int argc, char *argv[])
Definition:
testLinearSolver.cpp:15
src
modules
importers
testLinearSolver.cpp
Generated on Tue Oct 28 2014 17:45:16 for Memosa-FVM by
1.8.6