Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.56 KB

README.md

File metadata and controls

63 lines (41 loc) · 1.56 KB

Infino.jl

Infrastructure to test Subcycling

Build Status

Installation

  1. Clone the repo: git clone [email protected]:lwJi/Infino.jl.git

  2. Add Infino to your Pkg environment: ] dev \path\to\the\repo

  3. Import Infino: using Infino

Run an example

julia run/Subcycling.jl test/integration/scalarwave_3levels.toml
julia tool/generate_gifs.jl test/integration/scalarwave_3levels/

Generate julia function from Symbolic expression

cd symbolic
julia generate_functions.jl

Refs

RK4 Steps

  • 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