advance_stella Subroutine

public subroutine advance_stella(istep, stop_stella)

unless running in multibox mode, no need to worry about mb_communicate calls as the subroutine is immediately exited if not in multibox mode. save value of phi & apar for use in diagnostics (to obtain frequency) reverse the order of operations every time step as part of alternating direction operator splitting this is needed to ensure 2nd order accuracy in time

Advance the explicit parts of the GKE Use operator splitting to separately evolve all terms treated implicitly Ensure fields are updated so that omega calculation is correct.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: istep
logical, intent(inout) :: stop_stella