Infrastructure to test Subcycling
-
Clone the repo:
git clone [email protected]:lwJi/Infino.jl.git
-
Add Infino to your Pkg environment:
] dev \path\to\the\repo
-
Import Infino:
using Infino
julia run/Subcycling.jl test/integration/scalarwave_3levels.toml
julia tool/generate_gifs.jl test/integration/scalarwave_3levels/
cd symbolic
julia generate_functions.jl
-
Initialise
-
March the first substep for all levels (coarse to fine)
------
------
------
------ ------ ------
- March the other substeps to the same time slice
for s = 2:2^(lmax-1) # from second to final substeps of the finest level
for l = 2:lmax # march all levels execpt the coarest (coarset to fine)
if l == lmax || (levs[l].time == levs[l+1].time)
if l < lmax
Restriction # from l+1 to l
Prolongation # from l-1 to l
rk4(levs[l])
- Restriction all levels