ESScript  Revision_
Finley.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 #ifndef __FINLEY_H__
17 #define __FINLEY_H__
18 
19 /****************************************************************************
20 
21  Finley finite element solver
22 
23 *****************************************************************************/
24 
25 #include "esysUtils/Esys_MPI.h"
26 #include "esysUtils/error.h"
27 
28 #include <vector>
29 
30 namespace finley {
31 
32 //#define Finley_TRACE
33 #define FINLEY_UNKNOWN -1
34 #define FINLEY_DEGREES_OF_FREEDOM 1
35 #define FINLEY_NODES 3
36 #define FINLEY_ELEMENTS 4
37 #define FINLEY_FACE_ELEMENTS 5
38 #define FINLEY_POINTS 6
39 #define FINLEY_CONTACT_ELEMENTS_1 7
40 #define FINLEY_CONTACT_ELEMENTS_2 8
41 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
42 #define FINLEY_REDUCED_NODES 14
43 #define FINLEY_REDUCED_ELEMENTS 10
44 #define FINLEY_REDUCED_FACE_ELEMENTS 11
45 #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
46 #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
47 
48 #define FINLEY_INITIAL_STATUS 0
49 
51 
52 double timer();
53 void resetError();
54 void setError(ErrorCodeType err, const char* msg);
55 bool noError();
57 char* getErrorMessage();
58 void checkFinleyError();
59 bool MPI_noError(Esys_MPIInfo *mpi_info);
60 
61 } // namespace finley
62 
63 #endif // __FINLEY_H__
64