Neko  0.8.99
A portable framework for high-order spectral element flow simulations
simulation_component Module Reference

Simulation components are objects that encapsulate functionality that can be fit to a particular compute pattern. More...

Data Types

type  simulation_component_t
 Base abstract class for simulation components. More...
 
type  simulation_component_wrapper_t
 A helper type that is needed to have an array of polymorphic objects. More...
 
interface  simulation_component_init
 The common constructor using a JSON dictionary. More...
 
interface  simulation_component_free
 Destructor. More...
 

Functions/Subroutines

subroutine simulation_component_init_base (this, json, case)
 Simulation component factory. Both constructs and initializes the object. More...
 
subroutine simulation_component_free_base (this)
 Destructor for the simulation_component_t (base) class. More...
 
subroutine simulation_component_preprocess_wrapper (this, t, tstep)
 Wrapper for calling preprocess_ based on the preprocess_controller. Serves as the public interface. More...
 
subroutine simulation_component_compute_wrapper (this, t, tstep)
 Wrapper for calling compute_ based on the compute_controller. Serves as the public interface. More...
 
subroutine simulation_component_restart_wrapper (this, t)
 Wrapper for calling set_counter_ based for the controllers. Serves as the public interface. More...
 
subroutine restart_ (this, t)
 Dummy restart function. More...
 
subroutine preprocess_ (this, t, tstep)
 Dummy preprocessing function. More...
 
subroutine compute_ (this, t, tstep)
 Dummy compute function. More...
 

Detailed Description

Note
The canonical way to abbreviate simulation_component is simcomp.

Function/Subroutine Documentation

◆ compute_()

subroutine simulation_component::compute_ ( class(simulation_component_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private
Parameters
tThe time value.
tstepThe current time-step

Definition at line 248 of file simulation_component.f90.

◆ preprocess_()

subroutine simulation_component::preprocess_ ( class(simulation_component_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private
Parameters
tThe time value.
tstepThe current time-step

Definition at line 237 of file simulation_component.f90.

◆ restart_()

subroutine simulation_component::restart_ ( class(simulation_component_t), intent(inout)  this,
real(kind=rp), intent(in)  t 
)
private
Parameters
tThe time value.

Definition at line 227 of file simulation_component.f90.

◆ simulation_component_compute_wrapper()

subroutine simulation_component::simulation_component_compute_wrapper ( class(simulation_component_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private
Parameters
tThe time value.
tstepThe current time-step

Definition at line 201 of file simulation_component.f90.

◆ simulation_component_free_base()

subroutine simulation_component::simulation_component_free_base ( class(simulation_component_t), intent(inout)  this)
private

Definition at line 176 of file simulation_component.f90.

◆ simulation_component_init_base()

subroutine simulation_component::simulation_component_init_base ( class(simulation_component_t), intent(inout)  this,
type(json_file), intent(inout)  json,
class(case_t), intent(inout), target  case 
)
private
Parameters
objectThe object to be created and initialized.
jsonJSON object initializing the simulation component.
caseThe simulation case. Constructor for the simulation_component_t (base) class.

Definition at line 129 of file simulation_component.f90.

◆ simulation_component_preprocess_wrapper()

subroutine simulation_component::simulation_component_preprocess_wrapper ( class(simulation_component_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private
Parameters
tThe time value.
tstepThe current time-step

Definition at line 186 of file simulation_component.f90.

◆ simulation_component_restart_wrapper()

subroutine simulation_component::simulation_component_restart_wrapper ( class(simulation_component_t), intent(inout)  this,
real(kind=rp), intent(in)  t 
)
private
Parameters
tThe time value.

Definition at line 215 of file simulation_component.f90.