Revision 2a26041b8cfe3af78c295ee4d7f0d4ef17c7a807 authored by Dmitry Yu. Naumov on 16 August 2021, 06:32:22 UTC, committed by Dmitry Yu. Naumov on 16 August 2021, 06:32:22 UTC
Staggered: check all processes for convergence in coupling iterations

See merge request ogs/ogs!3740
2 parent s 3811e43 + 1ff0986
Raw File
CMakeLists.txt
get_source_files(SOURCES)

# It should be removed too for other MPI based DDC approach in future.
if(NOT OGS_USE_PETSC)
    list(REMOVE_ITEM SOURCES NodePartitionedMesh.h)
endif()

append_source_files(SOURCES MeshEditing)
append_source_files(SOURCES MeshGenerators)
append_source_files(SOURCES MeshSearch)
append_source_files(SOURCES Elements)
append_source_files(SOURCES IO)
append_source_files(SOURCES IO/Legacy)
append_source_files(SOURCES IO/VtkIO)
append_source_files(SOURCES Utils)
append_source_files(SOURCES IO/XDMF)
if(OGS_USE_PETSC)
    append_source_files(SOURCES IO/XDMF/mpi)
else()
    append_source_files(SOURCES IO/XDMF/posix)
endif()

append_source_files(SOURCES MeshQuality)
append_source_files(SOURCES Vtk)

# It could be used for other MPI based DDC approach in future.
if(OGS_USE_PETSC)
    append_source_files(SOURCES IO/MPI_IO)
endif()

# Create the library
ogs_add_library(MeshLib ${SOURCES})

target_link_libraries(
    MeshLib
    PUBLIC BaseLib
           GeoLib
           GitInfoLib
           ${HDF5_LIBRARIES}
           MathLib
           ${VTK_LIBRARIES}
           $<$<TARGET_EXISTS:MPI::MPI_CXX>:MPI::MPI_CXX>
           $<$<TARGET_EXISTS:petsc>:petsc>
)

target_include_directories(MeshLib PUBLIC ${VTK_INCLUDE_DIRS})

target_compile_definitions(
    MeshLib
    PUBLIC
        $<$<AND:$<BOOL:$ENV{VTK_USE_64BIT_IDS}>,$<NOT:$<BOOL:VTK_ADDED>>>:VTK_USE_64BIT_IDS>
)
back to top