DISPATCH
|
Data Types | |
type | timestep_t |
Variables | |
type(timestep_t), save, public | timestep |
Adams-Bashforth time stepping, with constant time step assumed (for now)
We store results in nt memory slots, starting with number 1, and continuing with numbers 2..nt, and then looping back to 1, but this is mapped by the iit array so that the last nt-1 time slot are t(iit(1:nt-1)), and t(iit(nt)) is the next time slot. The (1:nt-1) slots are complete, and may be used freely, while the (nt) slot is the one where new values are to be stored. The experiment_tupdate procedure thus writes new time derivatives there, and it is the task of this timestep procedure to update the values there, using them time derivatives and the previous values.