Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks for steady state should be implemented as functions #176

Closed
ranocha opened this issue Sep 9, 2020 · 0 comments · Fixed by #200
Closed

Checks for steady state should be implemented as functions #176

ranocha opened this issue Sep 9, 2020 · 0 comments · Fixed by #200
Assignees
Labels
enhancement New feature or request

Comments

@ranocha
Copy link
Member

ranocha commented Sep 9, 2020

Trixi.jl/src/run.jl

Lines 311 to 331 in dd7502e

# Check steady-state integration residual
if solver.equations isa HyperbolicDiffusionEquations2D
if maximum(abs, view(solver.elements.u_t, 1, :, :, :)) <= solver.equations.resid_tol
println()
println("-"^80)
println(" Steady state tolerance of ",solver.equations.resid_tol," reached at time ",time)
println("-"^80)
println()
finalstep = true
end
end
if solver.equations isa HyperbolicDiffusionEquations3D
if maximum(abs, view(solver.elements.u_t, 1, :, :, :, :)) <= solver.equations.resid_tol
println()
println("-"^80)
println(" Steady state tolerance of ",solver.equations.resid_tol," reached at time ",time)
println("-"^80)
println()
finalstep = true
end
end

@ranocha ranocha added the enhancement New feature or request label Sep 9, 2020
@ranocha ranocha mentioned this issue Oct 14, 2020
45 tasks
@ranocha ranocha self-assigned this Oct 14, 2020
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 a pull request may close this issue.

1 participant