Fortran toolkit for interoperating Fortran with C/C++.
In addition useful algorithms from ecKit are wrapped with Fortran.
Project website and reference documentation on released versions: https://confluence.ecmwf.int/display/FCKIT
Unit Testing Framwork for Fortran, made easy.
- C Preprocessor Macros are used to make writing tests extremely fast
- Tests in one file are bundled in a Test Suite (Fortran Module)
- Python script generates a main program for a Test Suite
- Driven by CMake build system ( and ctest )
Simply add following line to your project's CMakeLists.txt
ecbuild_add_option( FEATURE FCTEST DEFAULT ${ENABLE_TESTS}
DESCRIPTION "Fortran Unit Testing Framework"
REQUIRED_PACKAGES "NAME fckit" )
See src/examples folder how to add and create the unit-tests.
Various Fortran modules helpful to create mixed-language applications
- MPI
- Logging
An offline build/installation of the fckit Python virtual environment can be completed as follows:
- Download all necessary Python dependencies of src/fckit/fckit_yaml_reader.
ruamel.yaml.clibis not a pure Python package, so we have to ensure a wheel compatible with the target platform is downloaded. pip compatibility tags for any system can be displayed usingpython3 -m pip debug --verbose, and buit-distributions (i.e. wheels) for ruamel.yaml.clib can be found here. For a linux installation based on an x86 architecture using Python3.10, the following command can be used:
FCKIT_WHEEL_ARCH=manylinux_2_17_x86_64 FCKIT_WHEEL_PYTHON_VERSION=310 ./populate
This will download all the wheels to <source-dir>/artifacts. It should
be noted that if FCKIT_WHEEL_ARCH and FCKIT_WHEEL_PYTHON_VERSION
are not specified then the wheels are downloaded for the calling system's Python interpreter.
-
scp/rsync/copy the directory containing the dependencies to the offline system.
-
Add the path to the
artifactsdirectory to the fckit CMake configuration step, i.e.-DARTIFACTS_DIR=<path-to-artifacts-dir>.
Please read LICENSE.
ECMWF