io4dolfinx 2.1.0__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {io4dolfinx-2.1.0/src/io4dolfinx.egg-info → io4dolfinx-2.2.0}/PKG-INFO +2 -2
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/pyproject.toml +3 -3
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/adios2/backend.py +2 -1
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/adios2/helpers.py +2 -1
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0/src/io4dolfinx.egg-info}/PKG-INFO +2 -2
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx.egg-info/requires.txt +1 -1
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_backends.py +3 -1
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_converter.py +6 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_openfoam.py +1 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/LICENSE +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/README.md +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/setup.cfg +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/ascii_helpers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/adios2/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/adios2_serial/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/adios2_serial/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/exodus/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/exodus/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/gmsh/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/gmsh/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/h5py/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/h5py/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/h5py/storage.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/h5py_serial/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/h5py_serial/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/med/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/med/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/nastran/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/nastran/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/nastran/helpers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/opencarp/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/opencarp/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/opencarp/helpers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/openfoam/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/openfoam/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/openfoam/helpers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/pyvista/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/pyvista/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/pyvista/helpers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/serial.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/vtk_cell_types.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/vtkhdf/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/vtkhdf/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/vtkhdf_serial/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/vtkhdf_serial/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/xdmf/__init__.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/backends/xdmf/backend.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/checkpointing.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/comm_helpers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/converter.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/format.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/original_checkpoint.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/py.typed +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/readers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/snapshot.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/structures.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/submesh.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/utils.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx/writers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx.egg-info/SOURCES.txt +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx.egg-info/dependency_links.txt +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx.egg-info/entry_points.txt +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/src/io4dolfinx.egg-info/top_level.txt +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_attributes.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_checkpointing.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_checkpointing_vector.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_exodus.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_format_version.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_geometry_dofmap_reconstruction.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_gmsh.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_h5py_compression.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_legacy_readers.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_med.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_mesh_writer.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_meshtags.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_nastran.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_numpy_vectorization.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_opencarp.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_original_checkpoint.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_pyvista.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_snapshot_checkpoint.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_submesh.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_version.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_vtkhdf.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_vtkhdf_compression.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_write_data_input_order.py +0 -0
- {io4dolfinx-2.1.0 → io4dolfinx-2.2.0}/tests/test_xdmf.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: io4dolfinx
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Checkpointing functionality for DOLFINx meshes/functions with ADIOS2
|
|
5
5
|
Author-email: "Jørgen S. Dokken" <dokken@simula.no>, "Henrik N.T. Finsberg" <henriknf@simula.no>
|
|
6
6
|
License: Copyright 2023 Jørgen S. Dokken, Henrik N.T. Finsberg and Simula Research Laboratory
|
|
@@ -15,7 +15,7 @@ Requires-Python: >=3.12
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: fenics-dolfinx>=0.10.0
|
|
18
|
-
Requires-Dist: fenicsx-compat>=0.
|
|
18
|
+
Requires-Dist: fenicsx-compat>=0.7.0
|
|
19
19
|
Requires-Dist: h5py>=3.10
|
|
20
20
|
Provides-Extra: adios2
|
|
21
21
|
Requires-Dist: adios2; extra == "adios2"
|
|
@@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta"
|
|
|
11
11
|
|
|
12
12
|
[project]
|
|
13
13
|
name = "io4dolfinx"
|
|
14
|
-
version = "2.
|
|
14
|
+
version = "2.2.0"
|
|
15
15
|
description = "Checkpointing functionality for DOLFINx meshes/functions with ADIOS2"
|
|
16
16
|
authors = [
|
|
17
17
|
{ name = "Jørgen S. Dokken", email = "dokken@simula.no" },
|
|
@@ -20,7 +20,7 @@ authors = [
|
|
|
20
20
|
license = { file = "LICENSE" }
|
|
21
21
|
readme = "README.md"
|
|
22
22
|
requires-python = ">=3.12"
|
|
23
|
-
dependencies = ["fenics-dolfinx>=0.10.0", "fenicsx-compat>=0.
|
|
23
|
+
dependencies = ["fenics-dolfinx>=0.10.0", "fenicsx-compat>=0.7.0", "h5py>=3.10"]
|
|
24
24
|
|
|
25
25
|
[project.scripts]
|
|
26
26
|
io4dolfinx-convert = "io4dolfinx.converter:main"
|
|
@@ -141,7 +141,7 @@ tag = true
|
|
|
141
141
|
sign_tags = false
|
|
142
142
|
tag_name = "v{new_version}"
|
|
143
143
|
tag_message = "Bump version: {current_version} → {new_version}"
|
|
144
|
-
current_version = "2.
|
|
144
|
+
current_version = "2.2.0"
|
|
145
145
|
# X.Y.Z.devN while developing, X.Y.Z when released
|
|
146
146
|
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>dev)(?P<pre_n>\d+))?'
|
|
147
147
|
serialize = ["{major}.{minor}.{patch}.{release}{pre_n}", "{major}.{minor}.{patch}"]
|
|
@@ -24,7 +24,8 @@ from .helpers import (
|
|
|
24
24
|
read_local_rows,
|
|
25
25
|
)
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
# ADIOS2 without MPI is supported through the adios2-serial backend
|
|
28
|
+
adios2 = fenicsx_compat.resolve_adios_scope(adios2, require_mpi=False)
|
|
28
29
|
|
|
29
30
|
read_mode = ReadMode.parallel
|
|
30
31
|
|
|
@@ -20,7 +20,8 @@ import numpy.typing as npt
|
|
|
20
20
|
|
|
21
21
|
from ...utils import compute_local_range, valid_function_types
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
# ADIOS2 without MPI is supported through the adios2-serial backend
|
|
24
|
+
adios2 = fenicsx_compat.resolve_adios_scope(adios2, require_mpi=False)
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
__all__ = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: io4dolfinx
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Checkpointing functionality for DOLFINx meshes/functions with ADIOS2
|
|
5
5
|
Author-email: "Jørgen S. Dokken" <dokken@simula.no>, "Henrik N.T. Finsberg" <henriknf@simula.no>
|
|
6
6
|
License: Copyright 2023 Jørgen S. Dokken, Henrik N.T. Finsberg and Simula Research Laboratory
|
|
@@ -15,7 +15,7 @@ Requires-Python: >=3.12
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: fenics-dolfinx>=0.10.0
|
|
18
|
-
Requires-Dist: fenicsx-compat>=0.
|
|
18
|
+
Requires-Dist: fenicsx-compat>=0.7.0
|
|
19
19
|
Requires-Dist: h5py>=3.10
|
|
20
20
|
Provides-Extra: adios2
|
|
21
21
|
Requires-Dist: adios2; extra == "adios2"
|
|
@@ -149,7 +149,9 @@ def test_serial_adios2_writes_adios2_files(tmp_path, writer, reader):
|
|
|
149
149
|
and snapshots of the other."""
|
|
150
150
|
adios2 = pytest.importorskip("adios2")
|
|
151
151
|
if not adios2.is_built_with_mpi:
|
|
152
|
-
|
|
152
|
+
# Without MPI, adios2 falls back to adios2-serial, whose writes and reads the tests
|
|
153
|
+
# with the backend fixture cover
|
|
154
|
+
pytest.skip("Compares the MPI adios2 backend with adios2-serial; needs ADIOS2 with MPI")
|
|
153
155
|
comm = MPI.COMM_WORLD
|
|
154
156
|
mesh = dolfinx.mesh.create_unit_square(comm, 4, 5)
|
|
155
157
|
V = dolfinx.fem.functionspace(mesh, ("Lagrange", 2))
|
|
@@ -44,6 +44,8 @@ def test_convert(shared_tmp_path, backend, command_line):
|
|
|
44
44
|
"""The converted checkpoint is read as any other, with the backend chosen from its
|
|
45
45
|
suffix."""
|
|
46
46
|
source = legacy_dir / "adios4dolfinx_checkpoint.bp"
|
|
47
|
+
if not source.exists():
|
|
48
|
+
pytest.skip(f"{source} does not exist")
|
|
47
49
|
output = shared_tmp_path / f"converted{suffixes[backend]}"
|
|
48
50
|
if command_line:
|
|
49
51
|
main([str(source), str(output)])
|
|
@@ -59,6 +61,8 @@ def test_convert(shared_tmp_path, backend, command_line):
|
|
|
59
61
|
def test_names(shared_tmp_path, backend):
|
|
60
62
|
"""Each function of the file gets the name at its position."""
|
|
61
63
|
source = legacy_dir / "adios4dolfinx_two_functions.bp"
|
|
64
|
+
if not source.exists():
|
|
65
|
+
pytest.skip(f"{source} does not exist")
|
|
62
66
|
output = shared_tmp_path / "two_functions.checkpoint"
|
|
63
67
|
main([str(source), str(output), "--names", "u", "v", "--backend", backend])
|
|
64
68
|
|
|
@@ -98,6 +102,8 @@ def test_convert_dolfin(shared_tmp_path, backend):
|
|
|
98
102
|
"""The mesh and a mesh function of a legacy DOLFIN file become a mesh and mesh tags, with
|
|
99
103
|
the node order of the file, so DOLFIN functions are read onto the converted mesh."""
|
|
100
104
|
source = dolfin_dir / "mesh.h5"
|
|
105
|
+
if not source.exists():
|
|
106
|
+
pytest.skip(f"{source} does not exist")
|
|
101
107
|
output = shared_tmp_path / f"dolfin{suffixes[backend]}"
|
|
102
108
|
main([str(source), str(output), "--meshtags", "facet_tags"])
|
|
103
109
|
|
|
@@ -496,6 +496,7 @@ def test_binary_and_compressed_files(shared_tmp_path, label_bits, compress, unit
|
|
|
496
496
|
assert comm.allreduce(len(a.values), op=MPI.SUM) > 0
|
|
497
497
|
|
|
498
498
|
|
|
499
|
+
@pytest.mark.usefixtures("scotch_partitioner")
|
|
499
500
|
def test_baffle(shared_tmp_path, unit_mesh, integral):
|
|
500
501
|
"""Two cells side by side, with separate but coincident points on the face between
|
|
501
502
|
them and a patch on each side. The patches are told apart by their labels, which
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|