Skip to content

Commit

Permalink
fix absolute path in pvtu (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: mbouyges <[email protected]>
  • Loading branch information
bmxam and mbouyges authored Oct 4, 2024
1 parent 74e55ff commit 618b1ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gridtypes/pvtk_grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,13 @@ end
# Here `path` is the basename of the main pvtk file (without the extension).
# Note that it can be in a subdirectory of `.`, and it can either be an absolute or relative
# path.
# If it is an absolute value, then always return an absolute value.
function _pvtk_vtk_filename_prefix(path; relative_to_pvtk, create_dirs = false)
dir_serial = path # directory where serial files will be written
if create_dirs
mkpath(dir_serial)
end
bname = basename(path)
if isabspath(path) || !relative_to_pvtk
if !relative_to_pvtk
joinpath(dir_serial, bname)
else
_, reldir = splitdir(dir_serial)
Expand Down

0 comments on commit 618b1ea

Please sign in to comment.