Centralized controller for a list of outputs.
More...
|
| procedure, pass(this) | init (this, time_end, size, time_start, write_at_start) |
| | Constructor.
|
| procedure, pass(this) | free (this) |
| | Destructor.
|
| procedure, pass(this) | add (this, out, write_par, write_control, start_time, write_at_start) |
| | Add an output to the controller.
|
| procedure, pass(this) | execute (this, time, ifforce) |
| | Sample the fields and output.
|
| procedure, pass(this) | set_counter (this, time) |
| | Set output counter based on time (after restart).
|
| procedure, pass(this) | time_to_next (this, time) |
| | The time until the next scheduled write of any of the outputs.
|
|
| type(output_ptr_t), dimension(:), allocatable | output_list |
| | List of outputs.
|
| type(time_based_controller_t), dimension(:), allocatable | controllers |
| | List of controllers for determining wether we should write.
|
| integer | n |
| | Number of outputs.
|
| integer | size |
| | Number of entries in the list.
|
| real(kind=dp) | time_start |
| | Start time of the simulation, the default anchor of the schedules.
|
| logical | write_at_start = .true. |
| | Whether outputs write the initial state of the simulation by default.
|
| real(kind=dp) | time_end |
| | Final time of the simulation.
|
Holds a list of output_t and corresponding time_based_controller_ts. Uses the latter to determine, which outputs need to be sampled and written to disk at a given time step.
Definition at line 53 of file output_controller.f90.
◆ add()
| procedure, pass(this) output_controller::output_controller_t::add |
( |
class(output_controller_t), intent(inout) | this, |
|
|
class(output_t), intent(inout), target | out, |
|
|
real(kind=dp), intent(in) | write_par, |
|
|
character(len=*), intent(in) | write_control, |
|
|
real(kind=dp), intent(in), optional | start_time, |
|
|
logical, intent(in), optional | write_at_start ) |
- Parameters
-
| out | The output to add. |
| write_par | The output frequency value, in accordance with write_control. |
| write_control | Determines the meaning of write_par. Accepts the usual list of control options. |
| start_time | When to start writing the output. Also the time the output schedule is anchored to. Optional, defaults to the start time of the simulation. |
| write_at_start | Whether to write at start_time itself. Should be .false. for outputs for which a write at the very first time step is meaningless, such as checkpoints and running statistics. Optional, defaults to what the controller was constructed with. |
Definition at line 74 of file output_controller.f90.
◆ execute()
| procedure, pass(this) output_controller::output_controller_t::execute |
( |
class(output_controller_t), intent(inout) | this, |
|
|
type(time_state_t), intent(in) | time, |
|
|
logical, intent(in), optional | ifforce ) |
- Parameters
-
| t | The time value. |
| tstep | The current time-stepper iteration. |
| ifforce | Whether to force a write. Optional, defaults to 0. |
Definition at line 76 of file output_controller.f90.
◆ free()
| procedure, pass(this) output_controller::output_controller_t::free |
( |
class(output_controller_t), intent(inout) | this | ) |
|
◆ init()
| procedure, pass(this) output_controller::output_controller_t::init |
( |
class(output_controller_t), intent(inout) | this, |
|
|
real(kind=dp), intent(in) | time_end, |
|
|
integer, intent(in), optional | size, |
|
|
real(kind=dp), intent(in), optional | time_start, |
|
|
logical, intent(in), optional | write_at_start ) |
- Parameters
-
| time_end | The end time of the simulation. |
| size | The number of controllers to allocate for. Optional, defaults to 1. |
| time_start | The start time of the simulation. Outputs that do not have a start time of their own do not write before it. Optional, defaults to 0. |
| write_at_start | Whether outputs write the initial state of the simulation. The default for the outputs added afterwards, which each of them can override. Optional, defaults to .true.. |
Definition at line 70 of file output_controller.f90.
◆ set_counter()
| procedure, pass(this) output_controller::output_controller_t::set_counter |
( |
class(output_controller_t), intent(inout) | this, |
|
|
type(time_state_t), intent(in) | time ) |
◆ time_to_next()
| procedure, pass(this) output_controller::output_controller_t::time_to_next |
( |
class(output_controller_t), intent(in) | this, |
|
|
type(time_state_t), intent(in) | time ) |
◆ controllers
| integer output_controller::output_controller_t::n |
◆ output_list
| type(output_ptr_t), dimension(:), allocatable output_controller::output_controller_t::output_list |
◆ size
| integer output_controller::output_controller_t::size |
◆ time_end
| real(kind=dp) output_controller::output_controller_t::time_end |
◆ time_start
| real(kind=dp) output_controller::output_controller_t::time_start |
◆ write_at_start
| logical output_controller::output_controller_t::write_at_start = .true. |
The documentation for this type was generated from the following file: