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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3246 by jfenwick, Thu Sep 30 06:12:05 2010 UTC revision 3247 by caltinay, Wed Oct 6 05:53:06 2010 UTC
# Line 14  Line 14 
14  #include <string.h>  #include <string.h>
15  #include "ElementType.h"  #include "ElementType.h"
16    
17  ElementTypeId eltTypeFromString(const char *s)  Dudley_ElementTypeId eltTypeFromString(const char *s)
18  {  {
19      if (strcmp(s, "Point1") == 0)      if (strcmp(s, "Point1") == 0)
20      {      {
21      return Point1;      return Dudley_Point1;
22      }      }
23      else if (strcmp(s, "Line2") == 0)      else if (strcmp(s, "Line2") == 0)
24      {      {
25      return Line2;      return Dudley_Line2;
26      }      }
27      else if (strcmp(s, "Tri3") == 0)      else if (strcmp(s, "Tri3") == 0)
28      {      {
29      return Tri3;      return Dudley_Tri3;
30      }      }
31      else if (strcmp(s, "Tet4") == 0)      else if (strcmp(s, "Tet4") == 0)
32      {      {
33      return Tet4;      return Dudley_Tet4;
34      }      }
35      else if (strcmp(s, "Line2Face") == 0)      else if (strcmp(s, "Line2Face") == 0)
36      {      {
37      return Line2Face;      return Dudley_Line2Face;
38      }      }
39      else if (strcmp(s, "Tri3Face") == 0)      else if (strcmp(s, "Tri3Face") == 0)
40      {      {
41      return Tri3Face;      return Dudley_Tri3Face;
42      }      }
43      else if (strcmp(s, "Tet4Face") == 0)      else if (strcmp(s, "Tet4Face") == 0)
44      {      {
45      return Tet4Face;      return Dudley_Tet4Face;
46      }      }
47      else      else
48      return NoRef;      return Dudley_NoRef;
49  }  }

Legend:
Removed from v.3246  
changed lines
  Added in v.3247

  ViewVC Help
Powered by ViewVC 1.1.26