escript  Revision_
Paso.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 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 <cfloat>
33 #include <esysUtils/error.h>
34 #include <esysUtils/Esys_MPI.h>
35 #include <esysUtils/index.h>
36 #include <esysUtils/maths.h>
37 
38 #include <boost/enable_shared_from_this.hpp>
39 #include <boost/shared_ptr.hpp>
40 
41 #define PASO_DLL_API
42 #ifdef _WIN32
43 # ifndef PASO_STATIC_LIB
44 # undef PASO_DLL_API
45 # ifdef PASO_EXPORTS
46 # define PASO_DLL_API __declspec(dllexport)
47 # else
48 # define PASO_DLL_API __declspec(dllimport)
49 # endif
50 # endif
51 #endif
52 
53 #define MATRIX_FORMAT_DEFAULT 1
54 #define MATRIX_FORMAT_CSC 2
55 #define MATRIX_FORMAT_BLK1 4
56 #define MATRIX_FORMAT_OFFSET1 8
57 #define MATRIX_FORMAT_TRILINOS_CRS 16
58 #define MATRIX_FORMAT_DIAGONAL_BLOCK 32
59 
60 #define PASO_ONE (double)(1.0)
61 #define PASO_ZERO (double)(0.0)
62 
63 #endif // __PASO_H__
64