Salome HOME
projects
/
modules
/
hydro.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b97791f
)
refs #673: export to telemac on export of calculation case
author
asl
<asl@opencascade.com>
Fri, 27 Nov 2015 09:05:22 +0000
(12:05 +0300)
committer
asl
<asl@opencascade.com>
Fri, 27 Nov 2015 09:05:22 +0000
(12:05 +0300)
src/HYDROData/HYDROData_CalculationCase.cxx
patch
|
blob
|
history
diff --git
a/src/HYDROData/HYDROData_CalculationCase.cxx
b/src/HYDROData/HYDROData_CalculationCase.cxx
index 3919019f0adcfac78e69d3c05c67502bdba55647..5cb82351aa3abe54cef4759c09368d1671546f9c 100644
(file)
--- 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
}