Skip to content

Obtaining the source code

Jorn Bruggeman edited this page Oct 16, 2023 · 18 revisions

FABM code and test cases are available from GitHub. We recommend you get the code from there with a Git client; that will enable you to stay up to date with the code in the future. Alternatively, you can download the last release of the code as a compressed file from the releases section.

Command line

On most Linux-like systems (Linux/Mac), a Git client is already installed. On Windows, you can install Git for Windows.

You can then obtain the FABM source code systems by opening a terminal window (Windows: command prompt) and executing:

git clone

This will create a new fabm directory in the current working directory, containing among others a subdirectory src with the Fortran source code and a subdirectory testcases with example configuration files.

After you have successfully downloaded the FABM source code, you can at any later time update to its latest version by executing git pull from anywhere within the fabm directory.

TortoiseGit on Windows

On Windows, a graphical client such as TortoiseGit can also be used to obtain the source code from the Git repository. Note that TortoiseGit requires Git for Windows to be installed first.

After Git for Windows and TortoiseGit are installed, you obtain the FABM source code by right-clicking in Windows Explorer within the directory where you want to place the source code directory, and choosing "Git Clone...". In the window that appears, set "URL" to, set "Directory" to the path where you want the source code (recommended: <CURRENT_DIRECTORY>\fabm) and click OK. This should download the latest code.

If you have successfully downloaded the FABM source code, you will at any later time be able to update to its latest version by right-clicking the directory with the source code, choosing "Git Sync...", and clicking the "Pull" button.