Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

µGrid

µGrid is a C++ library for discrete representation of fields on structured grids, with Python bindings. It provides efficient data structures and algorithms for solving partial differential equations on regular grids, with support for MPI parallelization and GPU acceleration.

Features

  • Field collections: Manage scalar, vector, and tensor fields on structured grids with flexible memory layouts
  • Domain decomposition: Cartesian decomposition with ghost cell communication for stencil operations
  • Linear operators: Discrete differential operators including Laplacian and FEM gradient operators for spectral methods
  • FFT engine: Built-in Fast Fourier Transform with MPI-parallel support (auto-selected slab or pencil decomposition) and native cuFFT/rocFFT N-D transforms on the GPU
  • GPU support: Optional CUDA and HIP backends for GPU-accelerated computation
  • NetCDF I/O: Serial and parallel file I/O for checkpointing and analysis

µGrid is written in C++20 and has language bindings for Python via pybind11.

This README contains only a small quick start guide. Please refer to the full documentation for more help.

Quick start

To install µGrid, run

pip install muGrid

Note that on most platforms this will install a binary wheel, that was compiled with a minimal configuration. To compile for your specific platform use

pip install -v --no-binary muGrid muGrid

which will compile the code. µGrid will autodetect MPI. GPU support (CUDA/ROCm) is off by default and must be enabled explicitly at build time (see the documentation); it is not autodetected. For I/O, it will try to use Unidata NetCDF for serial builds and PnetCDF for MPI-parallel builds. Monitor output to see which of these options were automatically detected.

Funding

This development has received funding from the Swiss National Science Foundation, the European Research Council, and the Deutsche Foschungsgemeinschaft.

Download files

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

Source Distribution

mugrid-1.0rc0.tar.gz (1.6 MB view details)

Uploaded Source

File details

Details for the file mugrid-1.0rc0.tar.gz.

File metadata

  • Download URL: mugrid-1.0rc0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mugrid-1.0rc0.tar.gz
Algorithm Hash digest
SHA256 e5c51d7cd08602a66d42cff2adb3df0db599d150e8d896a025d6986aacd64b9f
MD5 b4b66dad0a790999a9b16b0fe7a76d7a
BLAKE2b-256 8af9ece0ef827c478ded1e66af18e3f07df9df008d6ab329ba96c01cdf0b3a2c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

26 files

This release

1.0rc0 This release

1 file

0.112.0

26 files

0.111.0

26 files

0.110.0

26 files

0.109.0

26 files

0.108.0

26 files

0.107.0

26 files

0.106.0

26 files

0.105.2

26 files

0.105.1

25 files

0.105.0

26 files

0.104.0

26 files

0.103.0

26 files

0.102.0

26 files

0.101.1

26 files

0.101.0

26 files

0.100.0

26 files

0.99.0

26 files

0.98.1

26 files

0.96.0

19 files

0.95.0

21 files

0.94.0

25 files

0.93.3

21 files

0.93.2

21 files

0.93.1

21 files

0.93.0

21 files

0.92.6

21 files

0.92.5

10 files

0.92.4

11 files

0.92.3

11 files

0.92.2

11 files

0.92.1

11 files

0.92.0

11 files

0.91.1

11 files

0.91.0

11 files

0.90.1

11 files

0.90.0

10 files

0.0.0

26 files

Supported by

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