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

v0.8.1 release #110

Merged
merged 10 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
DEB_PYTHON_INSTALL_LAYOUT: deb_system

runs-on: ubuntu-22.04
container: ghcr.io/fenics/dolfinx/dolfinx:nightly
container: ghcr.io/fenics/dolfinx/dolfinx:v0.8.0
steps:
# This action sets the current path to the root of your github repo
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
DEB_PYTHON_INSTALL_LAYOUT: deb_system

runs-on: ubuntu-22.04
container: ghcr.io/fenics/dolfinx/dolfinx:nightly
container: ghcr.io/fenics/dolfinx/dolfinx:v0.8.0
steps:
# This action sets the current path to the root of your github repo
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
test-code:
runs-on: "ubuntu-22.04"
needs: [create-datasets, create-legacy-datasets, check-formatting]
container: ghcr.io/fenics/dolfinx/dolfinx:nightly
container: ghcr.io/fenics/dolfinx/dolfinx:v0.8.0
env:
DEB_PYTHON_INSTALL_LAYOUT: deb_system

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test_package_openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ jobs:
with:
adios2: ${{ matrix.adios2 }}
petsc_arch: ${{ env.PETSC_ARCH }}
dolfinx: main
dolfinx: v0.8.0
basix: v0.8.0
ufl: 2024.1.0.post0
ffcx: v0.8.0

- name: Download legacy data
uses: actions/download-artifact@v4
Expand Down
10 changes: 5 additions & 5 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Dokken"
given-names: "Jørgen S."
orcid: "0000-0001-6489-8858"
- family-names: "Dokken"
given-names: "Jørgen S."
orcid: "0000-0001-6489-8858"
title: "ADIOS2Wrappers"
version: "0.7.2"
date-released: "2023-02-07"
version: "0.8.1"
date-released: "2023-04-25"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The `adios4dolfinx` library extends the [DOLFINx](https://github.com/FEniCS/dolf
## Installation
Compatibility with DOLFINx:
- ADIOS4DOLFINx v0.7.3 is compatible with DOLFINx v0.7.x
- ADIOS4DOLFINx v0.8.x is compatible with the main branch of DOLFINx
- ADIOS4DOLFINx v0.8.1 is compatible with DOLFINx v0.8.x

### Docker

Expand Down Expand Up @@ -58,13 +58,13 @@ Following is a minimal recipe of how to install adios4dolfinx, given that you ha
conda create -n dolfinx-checkpoint python=3.10
conda activate dolfinx-checkpoint
conda install -c conda-forge fenics-dolfinx pip adios2
python3 -m pip install adios4dolfinx[test]@git+https://github.com/jorgensd/adios4dolfinx@v0.7.3
python3 -m pip install adios4dolfinx[test]@git+https://github.com/jorgensd/adios4dolfinx@v0.8.0
jorgensd marked this conversation as resolved.
Show resolved Hide resolved
jorgensd marked this conversation as resolved.
Show resolved Hide resolved
```

> [!NOTE]
> To run the tests or demos associated with the code, install `ipyparallel` in your environment, for instance by calling
> ```bash
> python3 -m pip install adios4dolfinx[test]@git+https://github.com/jorgensd/adios4dolfinx@v0.7.3
> python3 -m pip install adios4dolfinx[test]@git+https://github.com/jorgensd/adios4dolfinx@v0.8.0
jorgensd marked this conversation as resolved.
Show resolved Hide resolved
> ```
## Functionality

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.8.0.dev0"
version = "0.8.1"
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.8.0.dev0"]
dependencies = ["fenics-dolfinx>=0.8.0"]

[project.optional-dependencies]
test = ["pytest", "coverage", "ipyparallel"]
Expand Down
2 changes: 1 addition & 1 deletion src/adios4dolfinx/checkpointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def write_attributes(
attributes: Dictionary of attributes to write to file
engine: ADIOS2 engine to use
"""

adios = adios2.ADIOS(comm)
with ADIOSFile(
adios=adios,
Expand Down Expand Up @@ -105,7 +106,6 @@ def read_attributes(
Returns:
The attributes
"""

adios = adios2.ADIOS(comm)
with ADIOSFile(
adios=adios,
Expand Down