ESScript
Revision_
Main Page
Namespaces
Classes
Files
File List
File Members
paso
src
MergedSolver.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2013 by University of Queensland
5
* http://www.uq.edu.au
6
*
7
* Primary Business: Queensland, Australia
8
* Licensed under the Open Software License version 3.0
9
* http://www.opensource.org/licenses/osl-3.0.php
10
*
11
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12
* Development since 2012 by School of Earth Sciences
13
*
14
*****************************************************************************/
15
16
17
/************************************************************************************/
18
19
/* Paso: AMG preconditioner (local version) */
20
21
/************************************************************************************/
22
23
/* Author: lgao@uq.edu.au, l.gross@uq.edu.au */
24
25
/************************************************************************************/
26
27
#ifndef INC_PASO_MERGEDSOLVER
28
#define INC_PASO_MERGEDSOLVER
29
30
#include "
Paso.h
"
31
#include "
SystemMatrix.h
"
32
#include "
Options.h
"
33
#include "esysUtils/Esys_MPI.h"
34
#include "
Paso.h
"
35
36
37
typedef
struct
Paso_MergedSolver
38
{
39
Esys_MPIInfo
*
mpi_info
;
40
Paso_SparseMatrix
*
A
;
41
42
double
*
x
;
43
double
*
b
;
44
index_t
*
counts
;
45
index_t
*
offset
;
46
index_t
reordering
;
47
index_t
refinements
;
48
index_t
verbose
;
49
index_t
sweeps
;
50
51
}
Paso_MergedSolver
;
52
53
Paso_SparseMatrix
*
Paso_MergedSolver_mergeSystemMatrix
(
Paso_SystemMatrix
* A);
54
Paso_MergedSolver
*
Paso_MergedSolver_alloc
(
Paso_SystemMatrix
*A,
Paso_Options
* options);
55
void
Paso_MergedSolver_free
(
Paso_MergedSolver
* in);
56
void
Paso_MergedSolver_solve
(
Paso_MergedSolver
* ms,
double
* local_x,
double
* local_b) ;
57
58
#endif
Generated on Thu Dec 12 2013 03:47:18 for ESScript by
1.8.1.2