Skip to content

Commit

Permalink
Removed the option of writing mesh files for different time steps.
Browse files Browse the repository at this point in the history
This is currently not used.
  • Loading branch information
SimonCan committed Oct 8, 2024
1 parent 81d836e commit 820cf13
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/meshes/p4est_mesh_view.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,8 @@ function save_mesh_file(mesh::P4estMeshView, output_directory; timestep = 0,
# Create output directory (if it does not exist)
mkpath(output_directory)

# Determine file name based on existence of meaningful time step
if timestep > 0
filename = joinpath(output_directory,
@sprintf("mesh_%s_%09d.h5", system, timestep))
p4est_filename = @sprintf("p4est_data_%s_%09d", system, timestep)
else
filename = joinpath(output_directory, @sprintf("mesh_%s.h5", system))
p4est_filename = @sprintf("p4est_data_%s", system)
end
filename = joinpath(output_directory, @sprintf("mesh_%s.h5", system))
p4est_filename = @sprintf("p4est_data_%s", system)

p4est_file = joinpath(output_directory, p4est_filename)

Expand Down

0 comments on commit 820cf13

Please sign in to comment.