YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
coupler_mod Module Reference

Data Types

type  coupler_t
 

Functions/Subroutines

subroutine, public coupler_init (coupler, comp_name, yaml_filename)
 Initialise the YAC coupler for the simulation component.
 
subroutine, public coupler_setup (coupler, grid)
 Set up the YAC coupler with the grid information.
 
subroutine, public exchange_ml_predictor (coupler, temperature, heat_flux, heat_flux_received)
 Exchange data with the ML predictor component.
 
logical function, public ml_predictor_has_data (coupler)
 
subroutine, public coupler_finalise (coupler)
 

Variables

integer, parameter max_char_length = 512
 

Function/Subroutine Documentation

◆ coupler_finalise()

subroutine, public coupler_mod::coupler_finalise ( type(coupler_t), intent(inout) coupler)

Definition at line 223 of file coupler_mod.F90.

Here is the caller graph for this function:

◆ coupler_init()

subroutine, public coupler_mod::coupler_init ( type(coupler_t), intent(inout) coupler,
character(len=*), intent(in) comp_name,
character(len=*), intent(in) yaml_filename )

Initialise the YAC coupler for the simulation component.

This subroutine initialises the YAC coupler for the simulation component. It reads the configuration from a YAML file and sets up the component communicator.

Definition at line 52 of file coupler_mod.F90.

Here is the caller graph for this function:

◆ coupler_setup()

subroutine, public coupler_mod::coupler_setup ( type(coupler_t), intent(inout) coupler,
type(icon_grid_t), intent(in) grid )

Set up the YAC coupler with the grid information.

This subroutine sets up the YAC coupler with the grid information from the simulation component. It defines the grid, sets the global indices, and defines the fields for temperature and heat flux prediction.

Definition at line 92 of file coupler_mod.F90.

Here is the caller graph for this function:

◆ exchange_ml_predictor()

subroutine, public coupler_mod::exchange_ml_predictor ( type(coupler_t), intent(inout) coupler,
real(c_double), dimension(:,:), intent(in) temperature,
real(c_double), dimension(:,:), intent(out) heat_flux,
logical, intent(out) heat_flux_received )

Exchange data with the ML predictor component.

Always sends the temperature field. The heat flux prediction is only received if it is actually coupled back (see coupler_setup); this is not the case for a one-way (training) configuration, in which case heat_flux is left unmodified and heat_flux_received is set to .FALSE.

Definition at line 170 of file coupler_mod.F90.

Here is the caller graph for this function:

◆ ml_predictor_has_data()

logical function, public coupler_mod::ml_predictor_has_data ( type(coupler_t), intent(in) coupler)

Definition at line 207 of file coupler_mod.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ max_char_length

integer, parameter coupler_mod::max_char_length = 512

Definition at line 21 of file coupler_mod.F90.