1616
1717import ipyparallel as ipp
1818
19- import adios4dolfinx
19+ import io4dolfinx
2020
2121
2222def compute_volume (mesh , time_stamp ):
@@ -39,7 +39,7 @@ def write_meshes(filename: Path):
3939 import dolfinx
4040 import numpy as np
4141
42- import adios4dolfinx
42+ import io4dolfinx
4343
4444 # Create a unit cube
4545 mesh = dolfinx .mesh .create_unit_cube (
@@ -52,15 +52,15 @@ def write_meshes(filename: Path):
5252 )
5353
5454 # Write mesh to file, associated with time stamp 1.5
55- adios4dolfinx .write_mesh (filename , mesh , time = 1.5 )
55+ io4dolfinx .write_mesh (filename , mesh , time = 1.5 )
5656 compute_volume (mesh , 1.5 )
5757 mesh .geometry .x [:, 0 ] += 0.1 * mesh .geometry .x [:, 0 ]
5858 mesh .geometry .x [:, 1 ] += 0.3 * mesh .geometry .x [:, 1 ] * np .sin (mesh .geometry .x [:, 2 ])
5959 compute_volume (mesh , 3.3 )
6060 # Write mesh to file, associated with time stamp 3.3
6161 # Note that we set the mode to append, as we have already created the file
6262 # and we do not want to overwrite the existing data
63- adios4dolfinx .write_mesh (filename , mesh , time = 3.3 , mode = adios4dolfinx .FileMode .append )
63+ io4dolfinx .write_mesh (filename , mesh , time = 3.3 , mode = io4dolfinx .FileMode .append )
6464
6565
6666# -
@@ -82,14 +82,14 @@ def write_meshes(filename: Path):
8282
8383# # Reading a time dependent mesh
8484# The only thing we need to do to read the mesh is to send in the associated time stamp,
85- # which we do by adding `time=time_stamp` when calling {py:func}`adios4dolfinx .read_mesh`.
85+ # which we do by adding `time=time_stamp` when calling {py:func}`io4dolfinx .read_mesh`.
8686
87- second_mesh = adios4dolfinx .read_mesh (
87+ second_mesh = io4dolfinx .read_mesh (
8888 mesh_file , comm = MPI .COMM_WORLD , backend = "adios2" , backend_args = {"engine" : "BP4" }, time = 3.3
8989)
9090compute_volume (second_mesh , 3.3 )
9191
92- first_mesh = adios4dolfinx .read_mesh (
92+ first_mesh = io4dolfinx .read_mesh (
9393 mesh_file , comm = MPI .COMM_WORLD , backend = "adios2" , backend_args = {"engine" : "BP4" }, time = 1.5
9494)
9595compute_volume (first_mesh , 1.5 )
0 commit comments