Memosa-FVM  0.2
testLinearSolver.cpp File Reference
#include <string>
#include "MMReader.h"
#include "AMG.h"
Include dependency graph for testLinearSolver.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 15 of file testLinearSolver.cpp.

References MMReader::getLS(), and AMG::solve().

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