Skip to content

Commit

Permalink
Reference precice.f90 from submodule path
Browse files Browse the repository at this point in the history
  • Loading branch information
YonatanGM committed Jan 30, 2025
1 parent 518544b commit 1902655
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions elastic-tube-1d/fluid-fortran-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ endif()
find_package(precice 3 REQUIRED CONFIG)
find_package(LAPACK REQUIRED)

# specify the path to the preCICE Fortran module
if(NOT DEFINED PRECICE_FORTRAN_MODULE)
message(FATAL_ERROR "PRECICE_FORTRAN_MODULE not set. Provide it with -DPRECICE_FORTRAN_MODULE=<path>")
endif()

add_executable(FluidSolver
src/FluidComputeSolution.f90
src/utilities.f90
src/FluidSolver.f90
src/precice.f90
${PRECICE_FORTRAN_MODULE}
)

target_link_libraries(FluidSolver PRIVATE precice::precice)
target_link_libraries(FluidSolver PRIVATE ${LAPACK_LIBRARIES} ${LAPACK_LINKER_FLAGS})

8 changes: 7 additions & 1 deletion elastic-tube-1d/solid-fortran-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ endif()

find_package(precice 3 REQUIRED CONFIG)

# specify the path to the preCICE Fortran module
if(NOT DEFINED PRECICE_FORTRAN_MODULE)
message(FATAL_ERROR "PRECICE_FORTRAN_MODULE not set. Provide it with -DPRECICE_FORTRAN_MODULE=<path>")
endif()

add_executable(SolidSolver
src/SolidComputeSolution.f90
src/SolidSolver.f90
src/precice.f90
${PRECICE_FORTRAN_MODULE}
)


target_link_libraries(SolidSolver PRIVATE precice::precice)

0 comments on commit 1902655

Please sign in to comment.