Skip to main content
Version: 0.4.0

Build options

Pass these to CMake at configure time, for example -DSCIROCCO_HDF5_OUTPUT=ON.

OptionDefaultWhat it does
SCIROCCO_BUILD_TESTSONSolver, geometry, Jacobian, and adjoint tests. The reference suites also need HDF5.
SCIROCCO_BUILD_EXAMPLESONquickstart, naca_example, viscous_example, bench, and docs_figure_data
SCIROCCO_HDF5_OUTPUTOFFThe scirocco_hdf5 library and hdf5_output_example
SCIROCCO_BUILD_PHILOTEOFFThe Philote gRPC servers. Needs Protobuf, gRPC, and Philote-Cpp.
SCIROCCO_NATIVE_ARCHONCompile Release builds with -march=native
SCIROCCO_USE_BLASONUse BLAS/LAPACK (the Apple Accelerate framework on macOS, OpenBLAS or MKL elsewhere) for the dense part of the coupled solve; falls back to Eigen if none is found
SCIROCCO_SANITIZERSOFFAddressSanitizer and UndefinedBehaviorSanitizer (GCC or Clang)
SCIROCCO_BUILD_SENSITIVITY_DEBUG_TESTSOFFExtra tests that isolate each piece of the adjoint chain
SCIROCCO_BUILD_PROBESOFF14 probe_* diagnostic programs for adjoint debugging

SCIROCCO_USE_BLAS speeds up viscous solves by 10-15% at 200 panels and more at higher panel counts. CMake reports which library it found. With a static library, the installed package configuration finds the same LAPACK for consumers.

SCIROCCO_NATIVE_ARCH makes binaries specific to the build machine's CPU. Turn it off when you build binaries to run elsewhere, such as Docker images or release artifacts.

Build directories are disposable. If CMake's cache or test discovery gets confused, delete the directory and configure again.