Skip to main content

Utilities for working with landlab in a parallel environment

Project description

License pre-commit.ci status Code style: black

landlab-parallel

Some utilities for working with landlab in a parallel environment.

Installation

pip install git+https://github.com/mcflugen/landlab-parallel.git

NOTE: To run the example, you'll need to install mpi4py, which may be easiest to do in a conda environment,

conda create -n mpi4py mpi4py
conda activate mpi4py

Run

The run_example.py command has a simple command-line interface,

run_example.py SIZE [--mode {raster,odd-r}] [--seed SEED]
  • SIZE: Integer. The grid will have dimensions (SIZE, 2 * SIZE).
  • --mode: Optional. Grid layout type. Choices:
    • raster
    • odd-r
  • --seed: Optional. Integer random seed for initializing grid elevations.

Example

NOTE: If you are on a Mac, you may need to first set the fabric interface used by libfabric,

export FI_PROVIDER=tcp

To run an example,

mpiexec -n 4 python ./run_example.py 128 --mode=odd-r --seed=1945

Contributors

Release Notes

0.1.0 (not yet released)

  • Initial code import #1
  • Added new function, vtu_dump, that dumps a landlab grid to vtu format #2.
  • Added new function, pvtu_dump, that compbines a set of vtu files #3.
  • Fixed an issue where the lower-left corner of the tiles were not be calculated correctly #4.
  • Added a command-line argument, mode, that allows the user to modify the type of grid used for the example #5.
  • Added a command-line argument, seed, that allows the user to provide a seed for the random number generator used to create the initial elevations #6.
  • Added a new component, Uplift, that uplifts the landscape #7.
  • Modified the time loop to exchange ghost node data after every component is updated and also added drainage area to the list of data fields that are exchanged #8.
  • Fixed a bug where the mode passed from the cli was ignored #9.
  • Mask-out data at closed nodes when writing to vtu #10.
  • Fixed an issue where ghost nodes were not being set correctly for some hex grids. #12.
  • Added support for creating d8-style tiles, which connect diagonal nodes #13.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

landlab_parallel-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

landlab_parallel-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file landlab_parallel-0.1.0.tar.gz.

File metadata

  • Download URL: landlab_parallel-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for landlab_parallel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0a15f2a2322a4a9337bf8183dad5dcd3069446e1159c4687d7d59a4c0fa9bb2
MD5 9236acbfdc6146d3d447fe6d1eb3fc7c
BLAKE2b-256 836c0591ff8e246e3704334ebfc8f3f425c2f1f5b8f77df437fe397120bb908a

See more details on using hashes here.

Provenance

The following attestation bundles were made for landlab_parallel-0.1.0.tar.gz:

Publisher: ci.yml on mcflugen/landlab-parallel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file landlab_parallel-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for landlab_parallel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61e07edb221e8bbda57f5b815e346327c173e6fe9f11113761f49de85cec486c
MD5 c1973b604ef26b00e48362fea4396883
BLAKE2b-256 a1aaef778bee1aef0d87feb0dc6e1c5377d962b1adcb77d50d7928e6a8842ebd

See more details on using hashes here.

Provenance

The following attestation bundles were made for landlab_parallel-0.1.0-py3-none-any.whl:

Publisher: ci.yml on mcflugen/landlab-parallel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page