Skip to content
Snippets Groups Projects
Commit cc050e88 authored by Tom Fischer's avatar Tom Fischer
Browse files

Merge branch 'DisableNonMPIToolsInMPIBuild' into 'master'

Disable building non MPI tools in MPI / PETSc build

See merge request ogs/ogs!3638
parents 3b5cf62e 20d18b44
No related branches found
No related tags found
No related merge requests found
if(OGS_USE_MPI)
return()
endif()
set(TOOLS
convertGEO
generateMatPropsFromMatID
......
if(OGS_USE_MPI)
return()
endif()
set(TOOLS
AddElementQuality
AddFaultToVoxelGrid
......
if(OGS_USE_MPI)
return()
endif()
set(TOOLS
AssignRasterDataToMesh
computeSurfaceNodeIDsInPolygonalRegion
......
add_subdirectory(PartitionMesh)
if(OGS_USE_MPI)
return()
endif()
set(TOOLS ComputeNodeAreasFromSurfaceMesh convertVtkDataArrayToVtkDataArray
createNeumannBc scaleProperty
)
......@@ -6,5 +12,3 @@ foreach(tool ${TOOLS})
target_link_libraries(${tool} GitInfoLib MeshLib tclap)
endforeach()
install(TARGETS ${TOOLS} RUNTIME DESTINATION bin)
add_subdirectory(PartitionMesh)
if(OGS_USE_MPI)
return()
endif()
CPMAddPackage(
NAME metis
GITHUB_REPOSITORY scibuilder/metis
......
if(OGS_USE_MPI)
return()
endif()
if(OGS_BUILD_PROCESS_LIE)
ogs_add_executable(postLIE postLIE.cpp)
target_link_libraries(postLIE GitInfoLib LIECommon tclap)
......
if(OGS_USE_MPI)
return()
endif()
set(TOOLS generateStructuredMesh)
if(OGS_BUILD_GUI)
list(APPEND TOOLS createMeshElemPropertiesFromASCRaster)
......
......@@ -312,7 +312,7 @@ if(SNAKEMAKE AND NOT OGS_USE_MPI AND TEE_TOOL_PATH)
--configfile ${PROJECT_BINARY_DIR}/buildinfo.yaml
-s ${CMAKE_CURRENT_SOURCE_DIR}/VoxelGridFromLayers.smk
)
add_dependencies(ctest ExtractBoundary Layers2Grid AddFaultToVoxelGrid)
add_dependencies(ctest ExtractBoundary Layers2Grid AddFaultToVoxelGrid generateStructuredMesh)
endif()
AddTest(
......
......@@ -54,10 +54,6 @@ if(CMAKE_CONFIGURATION_TYPES)
endif()
add_custom_target(ctest-cleanup ${CMAKE_COMMAND} -E remove -f Tests/ctest.log)
if(OGS_BUILD_UTILS)
list(APPEND test_dependencies generateStructuredMesh)
endif()
add_custom_target(
ctest
COMMAND
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment