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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6939 - (show annotations)
Mon Jan 20 03:37:18 2020 UTC (4 months, 1 week ago) by uqaeller
File MIME type: text/plain
File size: 2499 byte(s)
Updated the copyright header.


1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17
18 #ifndef __FINLEY_H__
19 #define __FINLEY_H__
20
21 /****************************************************************************
22
23 Finley finite element solver
24
25 *****************************************************************************/
26
27 // first include to avoid _POSIX_C_SOURCE redefinition warnings
28 #include <escript/DataTypes.h>
29
30 #include <finley/FinleyException.h>
31
32 #include <escript/EsysMPI.h>
33
34 #include <vector>
35
36 namespace finley {
37
38 using escript::DataTypes::dim_t;
39 using escript::DataTypes::index_t;
40 using escript::DataTypes::IndexVector;
41
42 // real_t clashes with metis real_t !
43 //using escript::DataTypes::real_t;
44
45 //#define Finley_TRACE
46 #define FINLEY_UNKNOWN -1
47 #define FINLEY_DEGREES_OF_FREEDOM 1
48 #define FINLEY_NODES 3
49 #define FINLEY_ELEMENTS 4
50 #define FINLEY_FACE_ELEMENTS 5
51 #define FINLEY_POINTS 6
52 #define FINLEY_CONTACT_ELEMENTS_1 7
53 #define FINLEY_CONTACT_ELEMENTS_2 8
54 #define FINLEY_REDUCED_DEGREES_OF_FREEDOM 2
55 #define FINLEY_REDUCED_NODES 14
56 #define FINLEY_REDUCED_ELEMENTS 10
57 #define FINLEY_REDUCED_FACE_ELEMENTS 11
58 #define FINLEY_REDUCED_CONTACT_ELEMENTS_1 12
59 #define FINLEY_REDUCED_CONTACT_ELEMENTS_2 13
60
61 enum {
62 DegreesOfFreedom = FINLEY_DEGREES_OF_FREEDOM,
63 ReducedDegreesOfFreedom = FINLEY_REDUCED_DEGREES_OF_FREEDOM,
64 Nodes = FINLEY_NODES,
65 ReducedNodes = FINLEY_REDUCED_NODES,
66 Elements = FINLEY_ELEMENTS,
67 ReducedElements = FINLEY_REDUCED_ELEMENTS,
68 FaceElements = FINLEY_FACE_ELEMENTS,
69 ReducedFaceElements = FINLEY_REDUCED_FACE_ELEMENTS,
70 Points = FINLEY_POINTS,
71 ContactElementsZero = FINLEY_CONTACT_ELEMENTS_1,
72 ReducedContactElementsZero = FINLEY_REDUCED_CONTACT_ELEMENTS_1,
73 ContactElementsOne = FINLEY_CONTACT_ELEMENTS_2,
74 ReducedContactElementsOne = FINLEY_REDUCED_CONTACT_ELEMENTS_2
75 };
76
77 #define FINLEY_INITIAL_STATUS 0
78
79 } // namespace finley
80
81 #endif // __FINLEY_H__
82

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26