Memosa-FVM  0.2
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 }
virtual MFRPtr solve(LinearSystem &ls)
Definition: AMG.cpp:220
Definition: AMG.h:27
shared_ptr< LinearSystem > getLS()
Definition: MMReader.cpp:80
int main(int argc, char *argv[])