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

Speed up ODE solve #24

Open
3 tasks
vpuri3 opened this issue Jun 28, 2022 · 5 comments
Open
3 tasks

Speed up ODE solve #24

vpuri3 opened this issue Jun 28, 2022 · 5 comments

Comments

@vpuri3
Copy link
Member

vpuri3 commented Jun 28, 2022

  1. Pass appropriate jac_prototype, preconditioner to OrdinaryDiffEq
  2. Experiment with timesteppers. Need IMEX timestepper so we aren't diffusion limited. CVODE_BDF is very fast but randomly segfaults. Tsit5 is very reliable but explicit.
  3. use https://diffeq.sciml.ai/dev/basics/integrator/#stepping_controls to take CFL based timesteps
@vpuri3
Copy link
Member Author

vpuri3 commented Jun 28, 2022

ref - https://diffeq.sciml.ai/stable/types/ode_types/#ode_prob for jacobian stuff.

jvp for heat equation is just the diffusion operator. for convection it will be a little more complicated

@vpuri3
Copy link
Member Author

vpuri3 commented Jun 28, 2022

need SciMLOperators, SparseDiffTools integration done to use linsolve argument like
RadauIIA5(autodiff=false,linsolve=IterativeSolversJL_CG())

SciML/SciMLOperators.jl#55

@vpuri3
Copy link
Member Author

vpuri3 commented Jun 28, 2022

# explicit
odealg = Tsit5()
odealg = SSPRK432()
odealg = SSPRK43()
# implicit
odealg = QNDF(autodiff=false)
odealg = RadauIIA5(autodiff=false)

@vpuri3
Copy link
Member Author

vpuri3 commented Jun 28, 2022

need to do OrdinaryDiffEq + SciMLOperators integration to use jvp argument
SciML/SciMLOperators.jl#55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant