Confusion about AMReX_RKIntegrator.H
and AMReX_RungeKutta.H
#3319
-
I see that in Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As for SUNDIALS integrators, I am not very familiar. I guess it depends. I know spectral deferred correction methods usually do not have such issues. (See for example, https://arxiv.org/abs/1806.10718) |
Beta Was this translation helpful? Give feedback.
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 thisamrex/Tests/GPU/…