/[escript]/trunk/finley/src/Finley.h
ViewVC logotype

Annotation of /trunk/finley/src/Finley.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5950 - (hide annotations)
Fri Feb 19 06:49:07 2016 UTC (3 years, 11 months ago) by caltinay
File MIME type: text/plain
File size: 1959 byte(s)
metis kindly put its own real_t typedef in the global namespace so
we need to be careful not to clash with that :-(

1 jgs 82
2 jfenwick 3981 /*****************************************************************************
3 ksteube 1811 *
4 jfenwick 5863 * Copyright (c) 2003-2016 by The University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 ksteube 1811 *
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 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 * Development 2012-2013 by School of Earth Sciences
13     * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3981 *
15     *****************************************************************************/
16 ksteube 1312
17 caltinay 4496 #ifndef __FINLEY_H__
18     #define __FINLEY_H__
19 ksteube 1811
20 caltinay 4496 /****************************************************************************
21 jgs 82
22 caltinay 4496 Finley finite element solver
23 jgs 82
24 caltinay 4496 *****************************************************************************/
25 jgs 82
26 jfenwick 3259 #include "esysUtils/Esys_MPI.h"
27     #include "esysUtils/error.h"
28 jgs 82
29 caltinay 5946 #include <escript/DataTypes.h>
30    
31 caltinay 4499 #include <vector>
32    
33 caltinay 4496 namespace finley {
34    
35 caltinay 5948 using escript::DataTypes::dim_t;
36     using escript::DataTypes::index_t;
37 caltinay 5950 // real_t clashes with metis real_t !
38     //using escript::DataTypes::real_t;
39 caltinay 5946
40 caltinay 4496 //#define Finley_TRACE
41 jgs 153 #define FINLEY_UNKNOWN -1
42 jgs 82 #define FINLEY_DEGREES_OF_FREEDOM 1
43     #define FINLEY_NODES 3
44     #define FINLEY_ELEMENTS 4
45     #define FINLEY_FACE_ELEMENTS 5
46     #define FINLEY_POINTS 6
47     #define FINLEY_CONTACT_ELEMENTS_1 7
48     #define FINLEY_CONTACT_ELEMENTS_2 8
49 gross 1062 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
50     #define FINLEY_REDUCED_NODES 14
51 gross 776 #define FINLEY_REDUCED_ELEMENTS 10
52     #define FINLEY_REDUCED_FACE_ELEMENTS 11
53     #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
54     #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
55 jgs 82
56 gross 776 #define FINLEY_INITIAL_STATUS 0
57    
58 caltinay 4496 typedef Esys_ErrorCodeType ErrorCodeType;
59 jgs 82
60 caltinay 4496 double timer();
61     void resetError();
62     void setError(ErrorCodeType err, const char* msg);
63     bool noError();
64     ErrorCodeType getErrorType();
65     char* getErrorMessage();
66     void checkFinleyError();
67 jfenwick 4934 bool MPI_noError(esysUtils::JMPI& mpi_info);
68 jgs 82
69 caltinay 4496 } // namespace finley
70 jgs 150
71 caltinay 4496 #endif // __FINLEY_H__
72 jgs 82

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26