/[escript]/branches/domexper/dudley/src/ElementType.c
ViewVC logotype

Contents of /branches/domexper/dudley/src/ElementType.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3247 - (show annotations)
Wed Oct 6 05:53:06 2010 UTC (8 years, 6 months ago) by caltinay
File MIME type: text/plain
File size: 1051 byte(s)
Fixed name clashes between dudley and finley so both can be used
simultaneously.

1
2 /*******************************************************
3 *
4 * Copyright (c) 2010 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14 #include <string.h>
15 #include "ElementType.h"
16
17 Dudley_ElementTypeId eltTypeFromString(const char *s)
18 {
19 if (strcmp(s, "Point1") == 0)
20 {
21 return Dudley_Point1;
22 }
23 else if (strcmp(s, "Line2") == 0)
24 {
25 return Dudley_Line2;
26 }
27 else if (strcmp(s, "Tri3") == 0)
28 {
29 return Dudley_Tri3;
30 }
31 else if (strcmp(s, "Tet4") == 0)
32 {
33 return Dudley_Tet4;
34 }
35 else if (strcmp(s, "Line2Face") == 0)
36 {
37 return Dudley_Line2Face;
38 }
39 else if (strcmp(s, "Tri3Face") == 0)
40 {
41 return Dudley_Tri3Face;
42 }
43 else if (strcmp(s, "Tet4Face") == 0)
44 {
45 return Dudley_Tet4Face;
46 }
47 else
48 return Dudley_NoRef;
49 }

  ViewVC Help
Powered by ViewVC 1.1.26