Skip to content

Commit 4a25ca9

Browse files
committed
update help of func; add another test
1 parent 37072f7 commit 4a25ca9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Paraview_collection.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using WriteVTK, Printf
44
export make_paraview_collection
55

66
"""
7-
make_paraview_collection(; dir=pwd(), pvd_name=nothing, files=nothing, file_extension = ".vtk", time = nothing)
7+
make_paraview_collection(; dir=pwd(), pvd_name=nothing, files=nothing, file_extension = ".vts", time = nothing)
88
99
In case one has a list of `*.vtk` files, this routine creates a `*.pvd` file that can be opened in Paraview.
1010
This is useful if you previously saved vtk files but didnt save it as a collection in the code itself.
@@ -13,9 +13,9 @@ Optional options
1313
===
1414
- `dir`: directory where the `*.vtk` are stored.
1515
- `pvd_name`: filename of the resulting `*.pvd` file without extension; if not specified, `full_simulation` is used.
16-
- `files`: filenames of the `*.vtk` files without extension; if not specified, all `*.vtk` files in the directory are used.
17-
- `file_extension`: file extension of the vtk files. Default is `.vts` but all `vt*` should work.
18-
- `time`: time of the timesteps; if not specified, pseudo time steps are assigned.
16+
- `files`: Vector of the `*.vtk` files without extension; if not specified, all `*.vtk` files in the directory are used.
17+
- `file_extension`: file extension of the vtk files. Default is `.vts` but all `vt*` work.
18+
- `time`: Vector of the timesteps; if not specified, pseudo time steps are assigned.
1919
"""
2020
function make_paraview_collection(; dir=pwd(), pvd_name=nothing, files=nothing, file_extension = ".vts", time = nothing)
2121

test/test_paraview_collection.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ make_paraview_collection("test2", files, time)
3737
@test isfile("test2.pvd")
3838
@test filesize("test2.pvd") == 317
3939

40+
make_paraview_collection(; pvd_name="test3", files=files, time=time)
41+
@test isfile("test3.pvd")
42+
@test filesize("test3.pvd") == 317
43+
4044
rm("test.pvd")
4145
rm("full_simulation.pvd")
4246
rm("test_files/test_depth3D.vts")

0 commit comments

Comments
 (0)