]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #673: patch for export to telemac
authorasl <asl@opencascade.com>
Fri, 27 Nov 2015 12:01:50 +0000 (15:01 +0300)
committerasl <asl@opencascade.com>
Fri, 27 Nov 2015 12:02:13 +0000 (15:02 +0300)
src/HYDROData/HYDROData_CalculationCase.cxx

index 5cb82351aa3abe54cef4759c09368d1671546f9c..e6e62169d8eafafb3e3ed5ff7657e37618908711 100644 (file)
@@ -975,13 +975,6 @@ QString HYDROData_CalculationCase::Export( int theStudyId ) const
   
   QString aGeomObjEntry, anErrorMsg;
   bool isOK = Export( aGEOMEngine, aDSStudy, aGeomObjEntry, anErrorMsg );
-  if( isOK && !GetLandCoverMap().IsNull() && !GetStricklerTable().IsNull() )
-  {
-    QString aTelemacFileName = GetName() + ".telemac";
-    isOK = GetLandCoverMap()->ExportTelemac( aTelemacFileName, 1E-2, GetStricklerTable() );
-  }
-
-
   return isOK ? aGeomObjEntry : QString();
 #endif
 }
@@ -1043,6 +1036,11 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var  theGeomEngine,
     aRes = Export( theGeomEngine, theStudy, aFaces, aSeqOfGroupsDefs, theGeomObjEntry );;
   }
 
+  if( aRes && !GetLandCoverMap().IsNull() && !GetStricklerTable().IsNull() )
+  {
+    QString aTelemacFileName = GetName() + ".telemac";
+    aRes = GetLandCoverMap()->ExportTelemac( aTelemacFileName, 1E-2, GetStricklerTable() );
+  }
   return aRes;
 }