Skip to content

Commit

Permalink
Changes due to introduction of consensus tag (#139)
Browse files Browse the repository at this point in the history
* Changes due to introduction of consensus tag introduced in FEniCS/dolfinx#3512

* Bump install action and version number
  • Loading branch information
jorgensd authored Nov 17, 2024
1 parent b25e84c commit 191b3e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_package_openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: python3 -m pip install --break-system-packages --upgrade pip setuptools

- name: Install DOLFINx
uses: jorgensd/actions/install-dolfinx@v0.3
uses: jorgensd/actions/install-dolfinx@v0.4
with:
adios2: ${{ matrix.adios2 }}
petsc_arch: ${{ env.PETSC_ARCH }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: python3 -m pip install ${{ steps.python-version.outputs.PYTHON_FLAGS}} --upgrade pip setuptools

- name: Install DOLFINx
uses: jorgensd/actions/install-dolfinx@v0.3
uses: jorgensd/actions/install-dolfinx@v0.4
with:
adios2: ${{ matrix.adios2 }}
petsc_arch: ${{ env.PETSC_ARCH }}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ requires = ["setuptools>=61.0.0", "wheel"]

[project]
name = "adios4dolfinx"
version = "0.9.0"
version = "0.9.0.dev0"
description = "Checkpointing functionality for DOLFINx meshes/functions with ADIOS2"
authors = [{ name = "Jørgen S. Dokken", email = "[email protected]" }]
license = { file = "LICENSE" }
readme = "README.md"
dependencies = ["fenics-dolfinx>=0.9.0"]
dependencies = ["fenics-dolfinx>0.9.0"]

[project.optional-dependencies]
test = ["pytest", "coverage", "ipyparallel"]
Expand Down
3 changes: 2 additions & 1 deletion src/adios4dolfinx/checkpointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ def write_mesh(
partition_processes = mesh.comm.size

# Get partitioning
cell_map = mesh.topology.index_map(mesh.topology.dim).index_to_dest_ranks()
consensus_tag = 1202
cell_map = mesh.topology.index_map(mesh.topology.dim).index_to_dest_ranks(consensus_tag)
num_cells_local = mesh.topology.index_map(mesh.topology.dim).size_local
cell_offsets = cell_map.offsets[: num_cells_local + 1]
if cell_offsets[-1] == 0:
Expand Down

0 comments on commit 191b3e2

Please sign in to comment.