When outputting files using the parameter output_solution_every_dt_time_intervals there are instances where casting to int results in the same file_number being used twice. When the same file_number is used twice, the previous output file is overwritten with the newer output. Examples of these cases are shown below.
To fix this I changed the type for file_number to double so that the round function can be used. With this fix, output files are no longer being overwritten.
When outputting files using the parameter
output_solution_every_dt_time_intervals
there are instances where casting to int results in the samefile_number
being used twice. When the samefile_number
is used twice, the previous output file is overwritten with the newer output. Examples of these cases are shown below.To fix this I changed the type for
file_number
to double so that the round function can be used. With this fix, output files are no longer being overwritten.