]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Corrected minor errors
authormichael <michael@localhost.localdomain>
Mon, 18 Jan 2021 15:47:42 +0000 (16:47 +0100)
committermichael <michael@localhost.localdomain>
Mon, 18 Jan 2021 15:47:42 +0000 (16:47 +0100)
CDMATH/swig/CMakeLists.txt
CDMATH/tests/cdmath/CMakeLists.txt
CDMATH/tests/examples/EulerSystem_Shock/EulerSystemUpwind/CMakeLists.txt

index 924fe3dcdbb4482c4405b531f0652efdd5e9a8f2..174ad7bfecc5d4ed970da1984d4bdb8366c805eb 100755 (executable)
@@ -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})
index dcb4556f4ee366d4a7ed562038ddb43a13d0e573..070ea665fbe66fddbb3fc72af6cadde90a1afb8c 100755 (executable)
@@ -1,5 +1,5 @@
 INCLUDE_DIRECTORIES(
-  ${CPPUNIT_INCLUDE_DIRS}
+  ${CPPUNIT_INCLUDE_DIR}
   ${MEDCOUPLING_INCLUDE_DIR}
   ${MESH_DIR}/inc 
   ${BASE_DIR}/inc
index 2a44dadc08e5fdcfbbe885f019b2d3b299688116..857c261691c9c537aec6b0f835c25cd0215d1168 100755 (executable)
@@ -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  )