Surface process framework on highly scalable unstructured meshes
1.2K
Quagmire is a Python surface process framework for building erosion and deposition models on highly parallel, decomposed structured and unstructured meshes.

The documentation is in the form of jupyter notebooks that are online in the form of a jupyter-book
The native installation of Quagmire requires a number of dependencies and a fortran compiler, preferably gfortran. Install Quagmire using setuptools:
python setup.py build
python setup.py install
Or using pip:
pip3 install quagmire
config_fc --fcompiler=<compiler name> when setup.py is run (see docs for numpy.distutils).If you are using Python 3.7+ and Linux or MacOS, then you may wish to install Quagmire using conda:
conda install -c underworldcode quagmire
To run the demonstration examples:
conda install -c conda-forge gdal cartopy
conda install -c underworldcode quagmire
However, we are aware that the dependency list is quite large and restrictive and this can make it tough for Anaconda to install other complicated packages. You may need to do this in a separate conda environment.
Some parts of the examples include references to the lavavu package which has its own installation requirements and it might be best to read their documentation
Alternatively
Installing these dependencies is not required if you follow the Conda or Docker installation method. If you choose to install Quagmire natively, then the following packages are required:
These dependencies are required to run the Jupyter Notebook examples:
PETSc is used extensively via the Python frontend, petsc4py. It is required that PETSc be configured and installed on your local machine prior to using Quagmire. You can use pip to install petsc4py and its dependencies.
[sudo] pip install numpy mpi4py
[sudo] pip install petsc petsc4py
If that fails you must compile these manually.
If you are compiling HDF5 from source it should be configured with the --enable-parallel flag:
CC=/usr/local/mpi/bin/mpicc ./configure --enable-parallel --enable-shared --prefix=INSTALL-DIRECTORY
make # build the library
make check # verify the correctness
make install
You can then point to this installation directory when you install h5py.
Quagmire is highly scalable. All of the python scripts in the tests subdirectory can be run in parallel, e.g.
mpirun -np 4 python stream_power.py
where the number after the -np flag specifies the number of processors.
Tutorials with worked examples can be found in the Quagmire Community repository. The topics covered in the Notebooks include:
Meshing
Flow algorithms
Erosion and deposition
Landscape evolution
The primary authors of the code are Ben Mather, Louis Moresi and Romain Beucher. We take collective responsibility for creating and maintaining the code. Here and there in the source code we mention who originated the code or modified it in order to help direct questions.
Content type
Image
Digest
Size
1 GB
Last updated
almost 6 years ago
docker pull underworldcode/quagmire