#include "cs_defs.h"#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "bft_mem.h"#include "bft_error.h"#include "bft_printf.h"#include "cs_base.h"#include "cs_log.h"#include "cs_map.h"#include "cs_parall.h"#include "cs_time_step.h" Include dependency graph for cs_time_step.c:
 Include dependency graph for cs_time_step.c:| Functions | |
| cs_time_step_t * | cs_get_glob_time_step (void) | 
| Provide read/write access to cs_glob_time_step.  More... | |
| cs_time_step_options_t * | cs_get_glob_time_step_options (void) | 
| Provide read/write access to cs_glob_time_step_options.  More... | |
| void | cs_time_step_define_variable (int is_variable) | 
| Define whether time step is variable or not.  More... | |
| void | cs_time_step_define_local (int is_local) | 
| Define whether time step is local in space or not.  More... | |
| void | cs_time_step_define_nt_max (int nt_max) | 
| Define maximum time step number.  More... | |
| void | cs_time_step_define_t_max (double t_max) | 
| Define maximum time value.  More... | |
| void | cs_time_step_define_prev (int nt_prev, double t_prev) | 
| Set time values from previous (usually restarted) calculations.  More... | |
| void | cs_time_step_increment (double dt) | 
| Increment the global time step.  More... | |
| void | cs_time_step_update_dt (double dt) | 
| Update global time step value for a time step in progress.  More... | |
| void | cs_time_step_redefine_cur (int nt_cur, double t_cur) | 
| Redefine the current time values.  More... | |
| void | cs_time_step_log_setup (void) | 
| Print the time stepping options to setup.log.  More... | |
base time step data.
| cs_time_step_t* cs_get_glob_time_step | ( | void | ) | 
Provide read/write access to cs_glob_time_step.
| cs_time_step_options_t* cs_get_glob_time_step_options | ( | void | ) | 
Provide read/write access to cs_glob_time_step_options.
| void cs_time_step_define_local | ( | int | is_local | ) | 
Define whether time step is local in space or not.
| [in] | is_local | 0 if time step is uniform in space, 1 if it is local | 
| void cs_time_step_define_nt_max | ( | int | nt_max | ) | 
Define maximum time step number.
| [in] | nt_max | maximum time step number (unlimited if negative) | 
| void cs_time_step_define_prev | ( | int | nt_prev, | 
| double | t_prev | ||
| ) | 
Set time values from previous (usually restarted) calculations.
| [in] | nt_prev | previous time step number | 
| [in] | t_prev | previous physical time | 
| void cs_time_step_define_t_max | ( | double | t_max | ) | 
Define maximum time value.
| [in] | t_max | maximum time value (unlimited if negative) | 
| void cs_time_step_define_variable | ( | int | is_variable | ) | 
Define whether time step is variable or not.
| [in] | is_variable | 0 if time step is variable in time, 1 if it is fixed | 
| void cs_time_step_increment | ( | double | dt | ) | 
Increment the global time step.
| [in] | dt | time step value to increment | 
| void cs_time_step_log_setup | ( | void | ) | 
Print the time stepping options to setup.log.
| void cs_time_step_redefine_cur | ( | int | nt_cur, | 
| double | t_cur | ||
| ) | 
Redefine the current time values.
| [in] | nt_cur | current time step number | 
| [in] | t_cur | current physical time | 
| void cs_time_step_update_dt | ( | double | dt | ) | 
Update global time step value for a time step in progress.
This is useful when using an adaptive time step, which is incremented earlier based on an estimated time step but needs to be updated.
| [in] | dt | time step value to update |