MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
Data Types | Modules | Functions/Subroutines | Variables
mod_supertimestepping.t File Reference

Go to the source code of this file.

Modules

module  mod_supertimestepping
 Generic supertimestepping method which can be used for multiple source terms in the governing equations where each term introduces a sts_term type and all sts terms are stored in a pointer list.
 

Functions/Subroutines

subroutine, public mod_supertimestepping::sts_init ()
 Initialize sts module.
 
pure logical function, public mod_supertimestepping::is_sts_initialized ()
 
subroutine, public mod_supertimestepping::add_sts_method (sts_getdt, sts_set_sources, startvar, nflux, startwbc, nwbc, evolve_b)
 subroutine which added programatically a term to be calculated using STS Params: sts_getdt function calculates the explicit timestep for this term sts_set_sources subroutine sets the source term startVar, nflux (making endVar=startVar+nflux-1) indices of start and number of the variables that need fix conservation startwbc, nwbc indices of start and number of the variables that need ghost cell exchange These terms implemented by an element of the derived type sts_term are put in a linked list
 
subroutine, public mod_supertimestepping::set_conversion_methods_to_head (sts_before_first_cycle, sts_after_last_cycle)
 Set the hooks called before the first cycle and after the last cycle in the STS update This method should be called after add_sts_method. The hooks are added to the last term added with this subroutine Params: sts_before_first_cycle, sts_after_last_cycle subroutines which implement the hooks called before first cycle and after last cycle.
 
subroutine, public mod_supertimestepping::set_error_handling_to_head (sts_error_handling)
 Set the hook of error handling in the STS update. This method is called before updating the BC. This method should be called after add_sts_method. The hook is added to the last term added with this subroutine. Param: sts_error_handing the subroutine which handles the errors.
 
logical function, public mod_supertimestepping::set_dt_sts_ncycles (my_dt)
 This sets the explicit dt and calculates the number of cycles for each of the terms implemented with STS.
 

Variables

integer, parameter, public mod_supertimestepping::sourcetype_sts_prior =0
 
integer, parameter, public mod_supertimestepping::sourcetype_sts_after =1
 
integer, parameter, public mod_supertimestepping::sourcetype_sts_split =2
 
integer, public mod_supertimestepping::sourcetype_sts = sourcetype_sts_split
 
type(sts_term), pointer mod_supertimestepping::head_sts_terms
 
procedure(subr3), pointer, public mod_supertimestepping::sts_add_source