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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6009 - (show annotations)
Wed Mar 2 04:13:26 2016 UTC (3 years, 1 month ago) by caltinay
File size: 1304 byte(s)
Much needed sync with trunk...

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 #include "ElementType.h"
18
19 #include <cstring>
20
21 Dudley_ElementTypeId eltTypeFromString(const char *s)
22 {
23 if (strcmp(s, "Point1") == 0)
24 {
25 return Dudley_Point1;
26 }
27 else if (strcmp(s, "Line2") == 0)
28 {
29 return Dudley_Line2;
30 }
31 else if (strcmp(s, "Tri3") == 0)
32 {
33 return Dudley_Tri3;
34 }
35 else if (strcmp(s, "Tet4") == 0)
36 {
37 return Dudley_Tet4;
38 }
39 else if (strcmp(s, "Line2Face") == 0)
40 {
41 return Dudley_Line2Face;
42 }
43 else if (strcmp(s, "Tri3Face") == 0)
44 {
45 return Dudley_Tri3Face;
46 }
47 else if (strcmp(s, "Tet4Face") == 0)
48 {
49 return Dudley_Tet4Face;
50 }
51 else
52 return Dudley_NoRef;
53 }
54

Properties

Name Value
svn:mergeinfo /branches/4.0fordebian/dudley/src/ElementType.cpp:5567-5588 /branches/lapack2681/finley/src/ElementType.cpp:2682-2741 /branches/pasowrap/dudley/src/ElementType.cpp:3661-3674 /branches/py3_attempt2/dudley/src/ElementType.cpp:3871-3891 /branches/restext/finley/src/ElementType.cpp:2610-2624 /branches/ripleygmg_from_3668/dudley/src/ElementType.cpp:3669-3791 /branches/stage3.0/finley/src/ElementType.cpp:2569-2590 /branches/symbolic_from_3470/dudley/src/ElementType.cpp:3471-3974 /branches/symbolic_from_3470/ripley/test/python/dudley/src/ElementType.cpp:3517-3974 /release/3.0/finley/src/ElementType.cpp:2591-2601 /release/4.0/dudley/src/ElementType.cpp:5380-5406 /trunk/dudley/src/ElementType.cpp:4257-4344,5898-6007 /trunk/ripley/test/python/dudley/src/ElementType.cpp:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26