This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author Ottar Hellan | |
| # SPDX license identifier: MIT | |
| # This example demonstrates how to implement custom partitioning strategies in DOLFINx without ghosting. | |
| # Based on https://jsdokken.com/dolfinx_docs/meshes.html#custom-partitioning, | |
| # Jørgen S. Dokken, 2023, under MIT License. | |
| # Tested with DOLFINx 0.10.0. | |
| # Example use: mpirun -n 4 python3 custom_partitioning.py |