Skip to content

Confusion about AMReX_RKIntegrator.H and AMReX_RungeKutta.H #3319

Answered by WeiqunZhang
FR13ndSDP asked this question in Q&A
Discussion options

You must be logged in to vote

AMReX_RKIntegrator.H is not wrong. It is an ODE solver that relies on the user to provide the correct RHS. When it is used to solve PDEs on AMR grids, one must fill the coarse/fine boundary correctly. For some high-order RK methods, it's non-trivial to fill the coarse/fine boundary correctly, because the intermediate RK stages do not exactly have a time associated with it. (See https://arxiv.org/abs/0810.2517v1 and https://msp.org/camcos/2011/6-1/p01.xhtml) Again, AMReX_RKIntegrator.H is not wrong. However, it would require the user to do a lot of work. That was why we implemented AMReX_RungeKutta and AMReX_FillPatcher. For AmrLevel based code, one can use it like this

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FR13ndSDP
Comment options

Answer selected by FR13ndSDP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants