ESScript  Revision_4488
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 
17 #ifndef INC_FINLEY
18 #define INC_FINLEY
19 
20 /************************************************************************************/
21 
22 /* Finley finite element solver */
23 
24 /************************************************************************************/
25 
26 #include "esysUtils/Esys_MPI.h"
27 #include "esysUtils/error.h"
28 
29 /************************************************************************************/
30 /*#define Finley_TRACE */
31 #define FINLEY_UNKNOWN -1
32 #define FINLEY_DEGREES_OF_FREEDOM 1
33 #define FINLEY_NODES 3
34 #define FINLEY_ELEMENTS 4
35 #define FINLEY_FACE_ELEMENTS 5
36 #define FINLEY_POINTS 6
37 #define FINLEY_CONTACT_ELEMENTS_1 7
38 #define FINLEY_CONTACT_ELEMENTS_2 8
39 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
40 #define FINLEY_REDUCED_NODES 14
41 #define FINLEY_REDUCED_ELEMENTS 10
42 #define FINLEY_REDUCED_FACE_ELEMENTS 11
43 #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
44 #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
45 
46 /* status stuff */
47 typedef int Finley_Status_t;
48 #define Finley_increaseStatus(self) ((self)->status)++
49 #define FINLEY_INITIAL_STATUS 0
50 
51 /* error codes */
52 
53 
55 
56 /* interfaces */
57 
58 double Finley_timer(void);
59 bool_t Finley_checkPtr(void*);
60 void Finley_resetError(void);
61 void Finley_setError(Finley_ErrorCodeType err,__const char* msg);
64 char* Finley_getErrorMessage(void);
65 void Finley_convertPasoError(void);
67 
68 #endif /* #ifndef INC_FINLEY */
69