Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/automated-dev-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX:PATH=${{runner.workspace}}/install \
-DCMAKE_Fortran_COMPILER:STRING=${{env.FORTRAN_COMPILER}} \
-DOPENMP:BOOL=ON \
-DBUILD_FASTFARM:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DBUILD_TESTING:BOOL=ON \
-DCTEST_PLOT_ERRORS:BOOL=ON \
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ option(USE_DLL_INTERFACE "Enable runtime loading of dynamic libraries" on)
option(FPE_TRAP_ENABLED "Enable FPE trap in compiler options" off)
option(ORCA_DLL_LOAD "Enable OrcaFlex Library Load" on)
option(BUILD_OPENFAST_CPP_API "Enable building OpenFAST - C++ API" off)
option(BUILD_FASTFARM "Enable building FAST.Farm" off)
option(OPENMP "Enable OpenMP support" off)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# Configure the default install path to openfast/install
Expand Down
19 changes: 19 additions & 0 deletions docs/source/install/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,25 @@ compile the C++ interface.
# Compile the C++ API
make openfastcpplib

FAST.Farm
~~~~~~~~~
The FAST.Farm glue-code is included in the CMake project similar to the
OpenFAST glue-code. See :ref:`compile_from_source` for a full description
on installing dependencies, configuring the project, and compiling.
FAST.Farm is enabled in the CMake project with an additional flag:

.. code-block:: bash

# Enable compiling FAST.Farm
cmake .. -DBUILD_FASTFARM:BOOL=ON

# Compile FAST.Farm
make FAST.Farm

OpenMP-Fortran is an additional dependency for FAST.Farm. These libraries
can be installed with any package manager for macOS and Linux or
through the Intel oneAPI distributions.

.. _installation_appendix:

Appendix
Expand Down
4 changes: 3 additions & 1 deletion glue-codes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ if(BUILD_OPENFAST_CPP_API)
add_subdirectory(openfast-cpp)
endif()

add_subdirectory(fast-farm)
if(BUILD_FASTFARM)
add_subdirectory(fast-farm)
endif()