escript
Revision_
paso
src
Paso.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2018 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 finite element solver library */
21
22
/****************************************************************************/
23
24
/* Copyrights by ACcESS Australia, 2003,2004,2005 */
25
/* Author: Lutz Gross, l.gross@uq.edu.au */
26
27
/****************************************************************************/
28
29
#ifndef __PASO_H__
30
#define __PASO_H__
31
32
#include <escript/index.h>
33
#include <escript/DataTypes.h>
34
#include <escript/EsysMPI.h>
35
36
#include <boost/enable_shared_from_this.hpp>
37
#include <boost/shared_ptr.hpp>
38
39
namespace
paso
{
40
41
// return codes used by the solvers
42
enum
SolverResult
{
43
NoError
= 0,
44
MaxIterReached
,
45
InputError
,
46
MemoryError
,
47
Breakdown
,
48
NegativeNormError
,
49
Divergence
50
};
51
52
using
escript::DataTypes::dim_t
;
53
using
escript::DataTypes::index_t
;
54
using
escript::DataTypes::real_t
;
55
using
escript::DataTypes::cplx_t
;
56
57
}
58
59
#define PASO_DLL_API
60
61
#define MATRIX_FORMAT_DEFAULT 1
62
#define MATRIX_FORMAT_CSC 2
63
#define MATRIX_FORMAT_BLK1 4
64
#define MATRIX_FORMAT_OFFSET1 8
65
#define MATRIX_FORMAT_DIAGONAL_BLOCK 32
66
67
#define PASO_ONE (double)(1.0)
68
#define PASO_ZERO (double)(0.0)
69
70
#endif // __PASO_H__
71
escript::DataTypes::real_t
double real_t
type of all real-valued scalars in escript
Definition:
DataTypes.h:73
paso::Divergence
Definition:
Paso.h:72
paso::MemoryError
Definition:
Paso.h:69
paso::InputError
Definition:
Paso.h:68
paso::NegativeNormError
Definition:
Paso.h:71
paso::Breakdown
Definition:
Paso.h:70
escript::DataTypes::dim_t
index_t dim_t
Definition:
DataTypes.h:87
paso::SolverResult
SolverResult
Definition:
Paso.h:53
paso::MaxIterReached
Definition:
Paso.h:67
escript::DataTypes::index_t
int index_t
type for array/matrix indices used both globally and on each rank
Definition:
DataTypes.h:82
paso
Definition:
BiCGStab.cpp:25
escript::DataTypes::cplx_t
std::complex< real_t > cplx_t
complex data type
Definition:
DataTypes.h:76
paso::NoError
Definition:
Paso.h:66
Generated by
1.8.16