Installation#
Dependencies#
To compile the det_mc executable, you need the following software on your system:
A Fortran compiler (gfortran is recommended)
Downloading the Detrital MC source code#
To build Detrital MC, you should first download the latest source code release as a .zip or .tar.gz file and extract its contents. For those who are familiar, you can also clone the Detrital MC git repository and build using that.
Building using GNU Make#
Edit the
source/Makefilefile to ensure the installation location of the Fortran Standard Library is correct for your system.In a terminal, navigate to the
sourcesubdirectory of Detrital MC.Run
make make installto compile Detrital MC and install it in the
binsubdirectory.
Building using CMake#
Edit the
source/CMakeLists.txtfile to ensure the installation location of the Fortran Standard Library is correct for your system.In a terminal, navigate to the base directory of Detrital MC.
Run
mkdir build cmake -B build -S source cmake --build build cmake --install build --prefix .
to compile Detrital MC and install it in the
binsubdirectory.