Skip to content

Restart from VTU#1037

Open
LasNikas wants to merge 117 commits intotrixi-framework:mainfrom
LasNikas:restart-from-vtu
Open

Restart from VTU#1037
LasNikas wants to merge 117 commits intotrixi-framework:mainfrom
LasNikas:restart-from-vtu

Conversation

@LasNikas
Copy link
Copy Markdown
Collaborator

@LasNikas LasNikas commented Jan 6, 2026

marcelschurer and others added 30 commits October 17, 2025 16:03
Comment thread src/general/restart.jl Outdated
@LasNikas LasNikas marked this pull request as ready for review April 17, 2026 12:54
@LasNikas LasNikas requested review from efaulhaber and svchb April 17, 2026 12:54
@LasNikas LasNikas added the enhancement New feature or request label Apr 17, 2026
@sloede
Copy link
Copy Markdown
Member

sloede commented Apr 17, 2026

Happy to see that restarting is receiving some TLC ♥️

@efaulhaber efaulhaber deleted the branch trixi-framework:main April 29, 2026 11:39
@efaulhaber efaulhaber closed this Apr 29, 2026
@efaulhaber efaulhaber reopened this Apr 29, 2026
@efaulhaber efaulhaber changed the base branch from dev to main April 29, 2026 12:18
Copy link
Copy Markdown
Collaborator

@svchb svchb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add also an example in which you restart TLSPH
  • All systems should be covered by tests

Copy link
Copy Markdown
Collaborator

@svchb svchb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't you read in the index for the buffered particles by modifying vtk2trixi?
As far as I understand it the particles in the buffer don't have to be continuous?

Comment on lines +197 to +198
This has to be a tuple of filenames, one for each system in the [`Semidiscretization`](@ref).
The order of the filenames has to match the order of the systems in the [`Semidiscretization`](@ref).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclear meaning of this sentences.

Comment thread src/general/restart.jl
Comment on lines +36 to +45
function time_span(tspan, restart_with::Tuple{Vararg{String}})
restart_data = vtk2trixi(first(restart_with))
t_restart = convert(eltype(tspan), restart_data.time)

if !isapprox(tspan[1], t_restart)
@info "Adjusting initial time from $(tspan[1]) to restart time $t_restart"
end

return (t_restart, tspan[2])
end
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should check if all the files start from the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants