Skip to content

Commit

Permalink
add more zeros to allow solution files
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Jun 28, 2024
1 parent 961f2e7 commit b048d5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/callbacks_step/save_solution_dg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ function save_solution_file(u, time, dt, timestep,

# Filename based on current time step
if isempty(system)
filename = joinpath(output_directory, @sprintf("solution_%06d.h5", timestep))
filename = joinpath(output_directory, @sprintf("solution_%09d.h5", timestep))
else
filename = joinpath(output_directory,
@sprintf("solution_%s_%06d.h5", system, timestep))
@sprintf("solution_%s_%09d.h5", system, timestep))
end

# Convert to different set of variables if requested
Expand Down Expand Up @@ -101,10 +101,10 @@ function save_solution_file(u, time, dt, timestep,

# Filename based on current time step
if isempty(system)
filename = joinpath(output_directory, @sprintf("solution_%06d.h5", timestep))
filename = joinpath(output_directory, @sprintf("solution_%09d.h5", timestep))
else
filename = joinpath(output_directory,
@sprintf("solution_%s_%06d.h5", system, timestep))
@sprintf("solution_%s_%09d.h5", system, timestep))
end

# Convert to different set of variables if requested
Expand Down

0 comments on commit b048d5a

Please sign in to comment.