Skip to content

Commit

Permalink
Isolate gmsh
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec committed Jun 26, 2024
1 parent e5e61ac commit ee4ac09
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 14 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ IF(ENABLE_HEC_DSS)
ENDIF(MSVC)
ENDIF(ENABLE_HEC_DSS)

SET(WITH_HYDRAULIC_MODEL_SUPPORT TRUE CACHE BOOL "Enable TELEMAC Model support")
SET(WITH_HYDRAULIC_MODEL_SUPPORT TRUE CACHE BOOL "Enable Hydraulic Model support")
IF(WITH_HYDRAULIC_MODEL_SUPPORT)
add_definitions(-DWITH_GMSH)
SET(GMSH_INCLUDE_DIR CACHE PATH "Path to the include dir of gmsh")
Expand Down Expand Up @@ -232,6 +232,7 @@ endif()
IF (ENABLE_TESTS)

set(COMEPHORE_TESTS_ENABLE FALSE CACHE BOOL "Enable tests for Comephore gridded rainfall, some specific files are necessary.")
set(ERA5_TESTS_ENABLE FALSE CACHE BOOL "Enable tests for ERA5 gridded data, some specific files are necessary.")
set(METEOFRANCEAPI_TESTS_ENABLE FALSE CACHE BOOL "Enable tests for Meteo France, a file containing a API key is necessary")
set(INTERN_PYTHON_TESTS_ENABLE FALSE CACHE BOOL "Enable tests related calling python from Reos")

Expand Down
2 changes: 1 addition & 1 deletion Tests/core/reos_mesh_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ email : vcloarec at gmail dot com
#include "reosmesh.h"
#include "reosmeshgenerator.h"
#include "reospolylinesstructure.h"
#include "reosgmshgenerator.h"
#include "gmsh/reosgmshgenerator.h"
#include "reos_testutils.h"
#include "reosparameter.h"

Expand Down
8 changes: 5 additions & 3 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ SET(REOS_CORE_SOURCES

IF(WITH_HYDRAULIC_MODEL_SUPPORT)
SET(REOS_CORE_SOURCES
mesh/gmesh/reosgmshgenerator.cpp
${REOS_CORE_SOURCES}
mesh/gmsh/reosgmshgenerator.cpp
)
ENDIF(WITH_HYDRAULIC_MODEL_SUPPORT)

Expand Down Expand Up @@ -206,7 +207,8 @@ SET(REOS_CORE_HEADERS

IF(WITH_HYDRAULIC_MODEL_SUPPORT)
SET(REOS_CORE_HEADERS
mesh/gmesh/reosgmshgenerator.h
${REOS_CORE_HEADERS}
mesh/gmsh/reosgmshgenerator.h
)
ENDIF(WITH_HYDRAULIC_MODEL_SUPPORT)

Expand Down Expand Up @@ -353,7 +355,7 @@ IF(WITH_HYDRAULIC_MODEL_SUPPORT)
${GMSH_INCLUDE_DIR}
)
TARGET_INCLUDE_DIRECTORIES( reosCore PUBLIC
${CMAKE_SOURCE_DIR}/src/core/gmesh
${CMAKE_SOURCE_DIR}/src/core/gmsh
)
ENDIF(WITH_HYDRAULIC_MODEL_SUPPORT)

Expand Down
2 changes: 1 addition & 1 deletion src/core/hydraulicNetwork/reoshydraulicstructure2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "reosmeshgenerator.h"
#include "reospolygonstructure.h"
#ifdef WITH_GMSH
#include "reosgmshgenerator.h"
#include "gmsh/reosgmshgenerator.h"
#endif //WITH_GMSH
#include "reostopographycollection.h"
#include "reoshydraulicsimulation.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/hydraulicNetwork/reoshydraulicstructure2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "reospolylinesstructure.h"
#include "reoshydraulicsimulation.h"
#ifdef WITH_GMSH
#include "reosgmshgenerator.h"
#include "gmsh/reosgmshgenerator.h"
#endif //WITH GMSH
#include "reosmeshgenerator.h"
#include "reosmesh.h"
Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/reosmeshgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "reospolylinesstructure.h"
#include "reospolygonstructure.h"
#ifdef WITH_GMSH
#include "reosgmshgenerator.h"
#include "gmsh/reosgmshgenerator.h"
#endif //WITH_GMSH

ReosMeshGeneratorProcess *ReosMeshGeneratorPoly2Tri::getGenerateMeshProcess( ReosPolylinesStructure *structure,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <QWidget>

#include "reosgmshgenerator.h"
#include "gmsh/reosgmshgenerator.h"
#include "reosmapitem.h"

class ReosMapToolEditPolygonStructure;
Expand All @@ -40,7 +40,7 @@ class ReosGmshResolutionControllerWidget : public QWidget
explicit ReosGmshResolutionControllerWidget( ReosHydraulicStructure2D *structure2D, const ReosGuiContext &guiContext );
~ReosGmshResolutionControllerWidget();

void addToolBarActions(const QList<QAction *> &actions );
void addToolBarActions( const QList<QAction *> &actions );

public slots:
void updateParameters();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mesh/reosmeshgeneratorgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <QHBoxLayout>
#include <QLabel>
#include "reosgmshgenerator.h"
#include "gmsh/reosgmshgenerator.h"

ReosFormWidget *ReosFormGmshGeneratorWidgetFactory::createDataWidget( ReosDataObject *dataObject, const ReosGuiContext &context )
{
Expand Down
6 changes: 3 additions & 3 deletions src/gui/reosmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ email : vcloarec at gmail dot com
#include "reosgisengine.h"
#include "reosplotwidget.h"
#include "reosstyleregistery.h"
#include "reosgmshgenerator.h"
#include "gmsh/reosgmshgenerator.h"


ReosMainWindow::ReosMainWindow( ReosModule *rootModule, QWidget *parent )
Expand Down Expand Up @@ -298,12 +298,12 @@ void ReosMainWindow::languageSelection()

void ReosMainWindow::newVersionAvailable()
{
new ReosVersionMessageBox( this, version(), false );
new ReosVersionMessageBox( this, version(), false );
}

ReosModule *ReosMainWindow::rootModule() const
{
return mRootModule;
return mRootModule;
}

ReosModule *ReosMainWindow::guiRootModule() const
Expand Down

0 comments on commit ee4ac09

Please sign in to comment.