/[escript]/branches/trilinos_from_5897/dudley/src/ElementType.h
ViewVC logotype

Contents of /branches/trilinos_from_5897/dudley/src/ElementType.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6079 - (show annotations)
Mon Mar 21 12:22:38 2016 UTC (2 years, 10 months ago) by caltinay
File MIME type: text/plain
File size: 1492 byte(s)
Big commit - making dudley much more like finley to make it more
managable. Fixed quite a few issues that had been fixed in finley.
Disposed of all ReducedNode/ReducedDOF entities that dudley never supported.
Compiles and passes tests.

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2010-2016 by The 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 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17 #ifndef __DUDLEY_ELEMENTTYPE_H__
18 #define __DUDLEY_ELEMENTTYPE_H__
19
20 #include <string>
21
22 namespace dudley {
23
24 typedef enum {
25 Dudley_Point1 = 0,
26 Dudley_Line2 = 1,
27 Dudley_Tri3 = 2,
28 Dudley_Tet4 = 3,
29 Dudley_Line2Face = 4,
30 Dudley_Tri3Face = 5,
31 Dudley_Tet4Face = 6,
32 Dudley_NoRef = 7 // marks end of list
33 } ElementTypeId;
34
35 inline ElementTypeId eltTypeFromString(const std::string& s)
36 {
37 if (s == "Point1")
38 return Dudley_Point1;
39 else if (s == "Line2")
40 return Dudley_Line2;
41 else if (s == "Tri3")
42 return Dudley_Tri3;
43 else if (s == "Tet4")
44 return Dudley_Tet4;
45 else if (s == "Line2Face")
46 return Dudley_Line2Face;
47 else if (s == "Tri3Face")
48 return Dudley_Tri3Face;
49 else if (s == "Tet4Face")
50 return Dudley_Tet4Face;
51 else
52 return Dudley_NoRef;
53 }
54
55 }
56
57 #endif // __DUDLEY_ELEMENTTYPE_H__
58

  ViewVC Help
Powered by ViewVC 1.1.26