MONC
Modules | Functions/Subroutines | Variables
cfltest.F90 File Reference

Go to the source code of this file.

Modules

module  cfltest_mod
 This contains the CFL test. It will perform the local advective CFL and Galilean transfromation calculations, compute the global values of these, then check the cfl criterion and determine an absolute new dtm. Depending upon the maximum and increment values this is then smoothed into a new dtm value. The value of dtm is physically set to this new value at the start of the next timestep.
 

Functions/Subroutines

type(component_descriptor_type) function, public cfltest_mod::cfltest_get_descriptor ()
 Provides the descriptor back to the caller and is used in component registration. More...
 
subroutine cfltest_mod::initialisation_callback (current_state)
 Called at initialisation, will read in configuration and use either configured or default values. More...
 
subroutine cfltest_mod::timestep_callback (current_state)
 Called at each timestep, this will only do the CFL computation every nncfl timesteps (or every timestep up to nncfl) but will ratchet up to the absolute (target) dtm as needed. More...
 
subroutine cfltest_mod::update_dtm_based_on_absolute (current_state, cfl_number)
 Updates the (new) dtm value, which is actioned after time step completion, based upon the absolute value. This is incremented towards the absolute if that is too large a step, and even if the absolute value has not been updated in this timestep, this ratcheting will still occur if needed. More...
 
subroutine cfltest_mod::perform_cfl_and_galilean_transformation_calculation (current_state)
 Performs the CFL and Galilean transformation calculations. First locally and then will determine the global value of each calculation. If U, V or W are not active then these are set to 0 and the calculation use these values. More...
 
subroutine cfltest_mod::get_global_values (local_zumin, local_zumax, local_zvmin, local_zvmax, local_cvel_z, local_cvis, global_zumin, global_zumax, global_zvmin, global_zvmax, global_cvel_z, global_cvis, parallel_state)
 Gets the global reduction values based upon the local contributions of CFL and Galilean transformations provided. More...
 

Variables

real(kind=default_precision) cfltest_mod::tollerance
 
real(kind=default_precision) cfltest_mod::cvismax
 
real(kind=default_precision) cfltest_mod::cvelmax
 
real(kind=default_precision) cfltest_mod::dtmmax
 
real(kind=default_precision) cfltest_mod::dtmmin
 
real(kind=default_precision) cfltest_mod::rincmax
 
logical cfltest_mod::l_monitor_cfl