escript  Revision_
MergedSolver.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 
18 /****************************************************************************
19 
20  * Paso: Merged solver for AMG
21 
22  ****************************************************************************/
23 
24 /* Author: lgao@uq.edu.au, l.gross@uq.edu.au */
25 
26 /****************************************************************************/
27 
28 #ifndef __PASO_MERGEDSOLVER_H__
29 #define __PASO_MERGEDSOLVER_H__
30 
31 #include "Paso.h"
32 #include "SystemMatrix.h"
33 
34 namespace paso {
35 
37 {
39  ~MergedSolver();
40 
41  void solve(double* local_x, const double* local_b);
42 
45  double* x;
46  double* b;
47  int* counts;
48  int* offset;
53 };
54 
55 } // namespace paso
56 
57 #endif // __PASO_MERGEDSOLVER_H__
58 
MergedSolver(const_SystemMatrix_ptr A, const Options *options)
Definition: MergedSolver.cpp:37
double * b
Definition: MergedSolver.h:46
Definition: Options.h:89
index_t verbose
Definition: MergedSolver.h:51
index_t reordering
Definition: MergedSolver.h:49
index_t sweeps
Definition: MergedSolver.h:52
boost::shared_ptr< JMPI_ > JMPI
Definition: EsysMPI.h:71
boost::shared_ptr< SparseMatrix > SparseMatrix_ptr
Definition: SparseMatrix.h:35
Definition: AMG.cpp:45
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:59
index_t refinements
Definition: MergedSolver.h:50
~MergedSolver()
Definition: MergedSolver.cpp:82
void solve(double *local_x, const double *local_b)
Definition: MergedSolver.cpp:90
double * x
Definition: MergedSolver.h:45
boost::shared_ptr< const SystemMatrix > const_SystemMatrix_ptr
Definition: SystemMatrix.h:42
Definition: MergedSolver.h:36
int * offset
Definition: MergedSolver.h:48
escript::JMPI mpi_info
Definition: MergedSolver.h:43
int * counts
Definition: MergedSolver.h:47
SparseMatrix_ptr A
Definition: MergedSolver.h:44