Skip to content

Commit

Permalink
add save solution dt
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyKholod committed Feb 5, 2024
1 parent a23bd2b commit ea0a7d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/literate/src/files/first_steps/create_first_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ save_solution = SaveSolutionCallback(interval = 5,
save_initial_solution = true,
save_final_solution = true)

# Alternatively, we have the option to print solution files at fixed time intervals.
# ```julua
# save_solution = SaveSolutionCallback(dt = 0.1,
# save_initial_solution = true,
# save_final_solution = true)
# ```

# Another useful callback is the [`SaveRestartCallback`](@ref). It saves information for restarting
# in regular intervals. We are interested in saving a restart file for the final solution as
# well. To perform a restart, you need to configure the restart setup in a special way, which is
Expand Down

0 comments on commit ea0a7d3

Please sign in to comment.