FIXME : Add documentation
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real, | public, | parameter | :: | dt_not_set | = | -1.0 | |
real, | public | :: | user_dt | ||||
real, | public | :: | code_dt | ||||
real, | public | :: | code_dt_prev1 | = | dt_not_set | ||
real, | public | :: | code_dt_prev2 | = | dt_not_set | ||
real, | private | :: | user_dt_cfl | = | 1e8 | ||
real, | public | :: | code_dt_cfl | = | 1e8 | ||
real, | public | :: | code_dt_min | ||||
real, | private | :: | user_dt_min | ||||
real, | public | :: | code_dt_max | ||||
real, | private | :: | user_dt_max | ||||
real, | public | :: | code_dt_old | = | 0. | ||
real, | public | :: | user_time | = | dt_not_set | ||
real, | public | :: | code_time | = | dt_not_set | ||
real, | public, | dimension (:), allocatable | :: | wunits | |||
real, | public, | dimension (:), allocatable | :: | woutunits | |||
real, | public, | dimension (:), allocatable | :: | tunits |
Reports how many previous time steps are available by checking if the previous code_dt values have been set to anything. Note we assume that if a time step is set then all more recent values have also been set.
Returns the current set of Adams Bashforth coefficients. The order is determined by how much time history we have available up to a maximum of 3rd order. The coefficients are generalised for variable timestep.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | maximum_order |
If present then sets the maxmimum method order to use when calculating the coefficients. Limited by how much time history we have available and no higher than 3. |
|
real, | intent(in), | optional | :: | target_dt |
If present sets the intended time step size we want to take. Otherwise assume we want to step by code_dt. |
The result contains up to three coefficients. The first entry corresponds to the coefficient for the latest source term, the second entry corresponds to the coefficient for the previous source term and the last entry is for the oldest source term.
Finalise the gs2_time module
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | tstart |
Set the full timestep history. Inputs set the current, previous and last but one timesteps
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | delt | |||
real, | intent(in) | :: | delt1 | |||
real, | intent(in) | :: | delt2 |
Check if the current time step is too big
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(out) | :: | reset |
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | delt_cfl |
Sets the minimum timestep size allowed based on passed value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | dt_min |
Sets the maximum timestep size allowed based on passed value.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | dt_max |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | delt |
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | usertime | |||
real, | intent(out) | :: | codetime |