From: michael Date: Mon, 18 Jan 2021 15:47:42 +0000 (+0100) Subject: Corrected minor errors X-Git-Tag: V9_7_0~76^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5b7c00ec5c1eaaafb1dc5f9b56a25ac6edb9187f;p=tools%2Fsolverlab.git Corrected minor errors --- diff --git a/CDMATH/swig/CMakeLists.txt b/CDMATH/swig/CMakeLists.txt index 924fe3d..174ad7b 100755 --- a/CDMATH/swig/CMakeLists.txt +++ b/CDMATH/swig/CMakeLists.txt @@ -35,9 +35,9 @@ IF (${CMAKE_VERSION} VERSION_GREATER "3.13.0") ENDIF(${CMAKE_VERSION} VERSION_GREATER "3.13.0") IF (${CMAKE_VERSION} VERSION_LESS "3.8.0") - SWIG_ADD_MODULE(cdmath python ${CMAKE_CURRENT_BINARY_DIR}/cdmath.i) -ELSE (${CMAKE_VERSION} VERSION_LESS "3.8.0") SWIG_ADD_LIBRARY(cdmath TYPE SHARED LANGUAGE python SOURCES ${CMAKE_CURRENT_BINARY_DIR}/cdmath.i) +ELSE (${CMAKE_VERSION} VERSION_LESS "3.8.0") + SWIG_ADD_MODULE(cdmath python ${CMAKE_CURRENT_BINARY_DIR}/cdmath.i) ENDIF(${CMAKE_VERSION} VERSION_LESS "3.8.0") SWIG_LINK_LIBRARIES(cdmath ${Python_LIBRARIES} base mesh ${medloader} ${medcoupling} ${_extra_lib_SWIG}) diff --git a/CDMATH/tests/cdmath/CMakeLists.txt b/CDMATH/tests/cdmath/CMakeLists.txt index dcb4556..070ea66 100755 --- a/CDMATH/tests/cdmath/CMakeLists.txt +++ b/CDMATH/tests/cdmath/CMakeLists.txt @@ -1,5 +1,5 @@ INCLUDE_DIRECTORIES( - ${CPPUNIT_INCLUDE_DIRS} + ${CPPUNIT_INCLUDE_DIR} ${MEDCOUPLING_INCLUDE_DIR} ${MESH_DIR}/inc ${BASE_DIR}/inc diff --git a/CDMATH/tests/examples/EulerSystem_Shock/EulerSystemUpwind/CMakeLists.txt b/CDMATH/tests/examples/EulerSystem_Shock/EulerSystemUpwind/CMakeLists.txt index 2a44dad..857c261 100755 --- a/CDMATH/tests/examples/EulerSystem_Shock/EulerSystemUpwind/CMakeLists.txt +++ b/CDMATH/tests/examples/EulerSystem_Shock/EulerSystemUpwind/CMakeLists.txt @@ -11,7 +11,7 @@ SET(MESH_MED ../../../ressources/ballWithTetrahedra.med ) -file(COPY ${MESH_MED} DESTINATION ${CMAKE_BINARY_DIR}/tests/examples/EulerSystemUpwind) +file(COPY ${MESH_MED} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES ${MESH_MED} DESTINATION share/examples/EulerSystemUpwind) if (CDMATH_WITH_PYTHON AND CDMATH_WITH_PETSC AND CDMATH_WITH_POSTPRO) @@ -28,11 +28,11 @@ if (CDMATH_WITH_PYTHON AND CDMATH_WITH_PETSC AND CDMATH_WITH_POSTPRO) SET(MESH_FILE ../../../ressources/meshCube.med ) - ADD_TEST(ExampleEulerSystem_3DShock_UpwindExplicit_CUBE_tetrahedra ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) + #ADD_TEST(ExampleEulerSystem_3DShock_UpwindExplicit_CUBE_tetrahedra ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) SET(MESH_FILE ../../../ressources/cubeWithCubes.med ) - ADD_TEST(ExampleEulerSystem_3DShock_UpwindExplicit_CUBE_cubes ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) + #ADD_TEST(ExampleEulerSystem_3DShock_UpwindExplicit_CUBE_cubes ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) SET(MESH_FILE ../../../ressources/diskWithTriangles.med ) @@ -66,11 +66,11 @@ if (CDMATH_WITH_PYTHON AND CDMATH_WITH_PETSC AND CDMATH_WITH_POSTPRO) SET(MESH_FILE ../../../ressources/meshCube.med ) - ADD_TEST(ExampleEulerSystem_3DShock_UpwindImplicit_CUBE_tetrahedra ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) + #ADD_TEST(ExampleEulerSystem_3DShock_UpwindImplicit_CUBE_tetrahedra ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) SET(MESH_FILE ../../../ressources/cubeWithCubes.med ) - ADD_TEST(ExampleEulerSystem_3DShock_UpwindImplicit_CUBE_cubes ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) + #ADD_TEST(ExampleEulerSystem_3DShock_UpwindImplicit_CUBE_cubes ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/EulerSystemUpwind.py ${MESH_FILE} ${IMPLICIT_SCHEME}) SET(MESH_FILE ../../../ressources/diskWithTriangles.med )