Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes due to introduction of consensus tag #139

Merged
merged 2 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "dokken@simula.no" }]
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