]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
MT modification.
authorageay <ageay>
Tue, 17 Sep 2013 09:57:34 +0000 (09:57 +0000)
committerageay <ageay>
Tue, 17 Sep 2013 09:57:34 +0000 (09:57 +0000)
src/ParaMEDMEM/ICoCoMEDField.cxx

index 4f6e825ffebd899a7f074ca7048c82051ccf3d2e..eac904ddf400726ad16aac8ee5f7d686d683d708 100644 (file)
@@ -56,6 +56,15 @@ namespace ICoCo
     INTERP_KERNEL::NormalizedCellType elemtype;
     switch (triofield._mesh_dim)
       {
+      case 1:
+        switch (triofield._nodes_per_elem)
+          {
+          case 2:
+            elemtype=INTERP_KERNEL::NORM_SEG2;
+            break;
+          default:
+            throw INTERP_KERNEL::Exception("incompatible Trio field - wrong nb of nodes per elem");
+          }
       case 2:
         switch (triofield._nodes_per_elem)
           {