Commit 8b77e52e authored by webmanue's avatar webmanue Committed by Manuel Weberndorfer
Browse files

disable example NonlinearBC for complex scalar type

- solver ALMM not supported for complex scalar type
parent ea77154c
Pipeline #138290 passed with stages
in 8 minutes and 14 seconds
......@@ -51,6 +51,7 @@ if(AE108_PETSc_FOUND AND NOT TARGET ae108::external::petsc)
endif()
try_compile_with_petsc("-DAE108_PETSC_COMPLEX")
set(AE108_PETSC_COMPLEX ${AE108_PETSc_COMPILE_RESULT} CACHE BOOL "ae108: PETSc with complex scalar type")
if(AE108_PETSc_COMPILE_RESULT)
target_compile_definitions(ae108::external::petsc
INTERFACE AE108_PETSC_COMPLEX=1
......
......@@ -128,9 +128,11 @@ target_link_libraries(${PROJECT_NAME}-Bar
PRIVATE ae108::elements
)
add_executable(${PROJECT_NAME}-NonlinearBC NonlinearBC.cc)
target_link_libraries(${PROJECT_NAME}-NonlinearBC
PRIVATE ae108::solve
PRIVATE ae108::assembly
PRIVATE ae108::elements
)
\ No newline at end of file
if (NOT ${AE108_PETSC_COMPLEX})
add_executable(${PROJECT_NAME}-NonlinearBC NonlinearBC.cc)
target_link_libraries(${PROJECT_NAME}-NonlinearBC
PRIVATE ae108::solve
PRIVATE ae108::assembly
PRIVATE ae108::elements
)
endif()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment