Salome HOME
correct small problem from the version in the MedFileV2_2 branch.
[modules/med.git] / src / MEDMEM / MEDMEM_MedMeshDriver.cxx
index 71a351db2e2486c37c32b79199746fae0c87f384..5ab0ffca77b602de61add1c9a00d2156572f0577 100644 (file)
@@ -372,10 +372,7 @@ void MED_MESH_RDONLY_DRIVER::getGRID()
       if (gridType == MED_EN::MED_GRILLE_CARTESIENNE)
        rep = MED_FR::MED_CART;
       else if (gridType == MED_EN::MED_GRILLE_POLAIRE)
-       {
-         if (SpaceDimension == 2) rep = MED_FR::MED_CYL;
-         else if (SpaceDimension == 3) rep = MED_FR::MED_SPHER;
-       }
+       rep = MED_FR::MED_CYL;
     }
   else
     throw MEDEXCEPTION(LOCALIZED(STRING(LOC) <<" bad grid type : " << gridType));