Salome HOME
Win64 porting. Release tight constraints under ranges of memory consumtion.
[tools/medcoupling.git] / src / ParaMEDMEM / ICoCoMEDField.cxx
index 1d6f9b3a3abf40c026bee912446102ccbc4e225a..eac904ddf400726ad16aac8ee5f7d686d683d708 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -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)
           {