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

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

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

revision 6008 by caltinay, Fri Feb 5 03:37:49 2016 UTC revision 6009 by caltinay, Wed Mar 2 04:13:26 2016 UTC
# Line 14  Line 14 
14  *  *
15  *****************************************************************************/  *****************************************************************************/
16    
 #include <string.h>  
17  #include "ElementType.h"  #include "ElementType.h"
18    
19    #include <cstring>
20    
21  Dudley_ElementTypeId eltTypeFromString(const char *s)  Dudley_ElementTypeId eltTypeFromString(const char *s)
22  {  {
23      if (strcmp(s, "Point1") == 0)      if (strcmp(s, "Point1") == 0)
24      {      {
25      return Dudley_Point1;          return Dudley_Point1;
26      }      }
27      else if (strcmp(s, "Line2") == 0)      else if (strcmp(s, "Line2") == 0)
28      {      {
29      return Dudley_Line2;          return Dudley_Line2;
30      }      }
31      else if (strcmp(s, "Tri3") == 0)      else if (strcmp(s, "Tri3") == 0)
32      {      {
33      return Dudley_Tri3;          return Dudley_Tri3;
34      }      }
35      else if (strcmp(s, "Tet4") == 0)      else if (strcmp(s, "Tet4") == 0)
36      {      {
37      return Dudley_Tet4;          return Dudley_Tet4;
38      }      }
39      else if (strcmp(s, "Line2Face") == 0)      else if (strcmp(s, "Line2Face") == 0)
40      {      {
41      return Dudley_Line2Face;          return Dudley_Line2Face;
42      }      }
43      else if (strcmp(s, "Tri3Face") == 0)      else if (strcmp(s, "Tri3Face") == 0)
44      {      {
45      return Dudley_Tri3Face;          return Dudley_Tri3Face;
46      }      }
47      else if (strcmp(s, "Tet4Face") == 0)      else if (strcmp(s, "Tet4Face") == 0)
48      {      {
49      return Dudley_Tet4Face;          return Dudley_Tet4Face;
50      }      }
51      else      else
52      return Dudley_NoRef;          return Dudley_NoRef;
53  }  }
54    

Legend:
Removed from v.6008  
changed lines
  Added in v.6009

  ViewVC Help
Powered by ViewVC 1.1.26