escript  Revision_
Finley.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 #ifndef __FINLEY_H__
18 #define __FINLEY_H__
19 
20 /****************************************************************************
21 
22  Finley finite element solver
23 
24 *****************************************************************************/
25 
26 #include "esysUtils/Esys_MPI.h"
27 #include "esysUtils/error.h"
28 
29 #include <vector>
30 
31 namespace finley {
32 
33 //#define Finley_TRACE
34 #define FINLEY_UNKNOWN -1
35 #define FINLEY_DEGREES_OF_FREEDOM 1
36 #define FINLEY_NODES 3
37 #define FINLEY_ELEMENTS 4
38 #define FINLEY_FACE_ELEMENTS 5
39 #define FINLEY_POINTS 6
40 #define FINLEY_CONTACT_ELEMENTS_1 7
41 #define FINLEY_CONTACT_ELEMENTS_2 8
42 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
43 #define FINLEY_REDUCED_NODES 14
44 #define FINLEY_REDUCED_ELEMENTS 10
45 #define FINLEY_REDUCED_FACE_ELEMENTS 11
46 #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
47 #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
48 
49 #define FINLEY_INITIAL_STATUS 0
50 
52 
53 double timer();
54 void resetError();
55 void setError(ErrorCodeType err, const char* msg);
56 bool noError();
57 ErrorCodeType getErrorType();
58 char* getErrorMessage();
59 void checkFinleyError();
60 bool MPI_noError(esysUtils::JMPI& mpi_info);
61 
62 } // namespace finley
63 
64 #endif // __FINLEY_H__
65 
void resetError()
resets the error to NO_ERROR
Definition: Finley.cpp:37
double timer()
returns a time mark
Definition: Finley.cpp:24
void setError(ErrorCodeType err, const char *msg)
sets an error
Definition: Finley.cpp:43
Definition: finley/src/Assemble.h:32
bool noError()
checks if there is no error
Definition: Finley.cpp:49
char * getErrorMessage(void)
returns the error message
Definition: Finley.cpp:61
Esys_ErrorCodeType ErrorCodeType
Definition: Finley.h:51
Esys_ErrorCodeType
Definition: error.h:41
bool MPI_noError(esysUtils::JMPI &mpi_info)
Definition: Finley.cpp:78
ErrorCodeType getErrorType()
returns the error code
Definition: Finley.cpp:55
boost::shared_ptr< JMPI_ > JMPI
Definition: Esys_MPI.h:79
void checkFinleyError()
Definition: Finley.cpp:66