fixed visualization
This commit is contained in:
parent
ae0e19baf9
commit
2d407097db
4 changed files with 77 additions and 22 deletions
|
|
@ -2,20 +2,22 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.10.2)
|
|||
SET(TARGET "ownSolver")
|
||||
PROJECT(${TARGET} LANGUAGES CXX DESCRIPTION "ownSolver")
|
||||
|
||||
# The ownSolver requires c++17
|
||||
SET(CMAKE_CXX_STANDARD 17)
|
||||
SET(CMAKE_CXX_EXTENSIONS OFF)
|
||||
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
file(GLOB MGRID_2_SOURCES
|
||||
../mgrid_2/binaryIO.cpp
|
||||
../mgrid_2/cuthill_mckee_ordering.cpp
|
||||
../mgrid_2/elements.cpp
|
||||
../mgrid_2/geom.cpp
|
||||
../mgrid_2/getmatrix.cpp
|
||||
../mgrid_2/jacsolve.cpp
|
||||
../mgrid_2/userset.cpp
|
||||
../mgrid_2/vdop.cpp)
|
||||
add_library(mgrid_2_library
|
||||
../mgrid_2/binaryIO.cpp
|
||||
../mgrid_2/cuthill_mckee_ordering.cpp
|
||||
../mgrid_2/elements.cpp
|
||||
../mgrid_2/geom.cpp
|
||||
../mgrid_2/getmatrix.cpp
|
||||
../mgrid_2/jacsolve.cpp
|
||||
../mgrid_2/userset.cpp
|
||||
../mgrid_2/vdop.cpp
|
||||
)
|
||||
|
||||
target_include_directories(mgrid_2_library PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}/../mgrid_2
|
||||
)
|
||||
|
||||
|
||||
|
||||
FIND_PACKAGE(precice 3.0 REQUIRED CONFIG)
|
||||
|
|
@ -23,8 +25,12 @@ FIND_PACKAGE(OpenMP REQUIRED)
|
|||
ADD_EXECUTABLE(
|
||||
${TARGET}
|
||||
${TARGET}.cpp
|
||||
${MGRID_2_SOURCES}
|
||||
)
|
||||
|
||||
target_compile_features(mgrid_2_library PUBLIC cxx_std_17)
|
||||
target_compile_features(${TARGET} PUBLIC cxx_std_17)
|
||||
|
||||
TARGET_LINK_LIBRARIES(${TARGET} PRIVATE precice::precice
|
||||
OpenMP::OpenMP_CXX)
|
||||
OpenMP::OpenMP_CXX
|
||||
PRIVATE mgrid_2_library
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue