From: asl Date: Fri, 27 Nov 2015 09:05:22 +0000 (+0300) Subject: refs #673: export to telemac on export of calculation case X-Git-Tag: v1.5~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24b3042f3891394463f12da6b1167d3f2ec34dcd;p=modules%2Fhydro.git refs #673: export to telemac on export of calculation case --- diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index 3919019f..5cb82351 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -975,6 +975,13 @@ 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 }