Skip to main content
Definition: CouplingInterface.hpp (line 28) Provide a class for a coupling interface. Coupling interface can be used to set up the transfers of data between different regions within the same participant solver. Interface contains two sides and each side can contain one or more regions. All regions on one side of the interface must have the same topology.

Members

Private attributes

Variable m_name

Definition: CouplingInterface.hpp (line 101)
Type: CouplingInterfaceName

Variable m_sideOneRegions

Definition: CouplingInterface.hpp (line 103)
Type: std::vector< Region >

Variable m_sideOneRegionsNameToIndex

Definition: CouplingInterface.hpp (line 104)
Type: std::map< RegionName, std::size_t >

Variable m_sideTwoRegions

Definition: CouplingInterface.hpp (line 106)
Type: std::vector< Region >

Variable m_sideTwoRegionsNameToIndex

Definition: CouplingInterface.hpp (line 107)
Type: std::map< RegionName, std::size_t >

Variable m_dataTransfers

Definition: CouplingInterface.hpp (line 109)
Type: std::vector< DataTransfer >

Public functions

Function CouplingInterface

Provide a constructor for the CouplingInterface class. Parameters:
  • interfaceName: A unique name for the coupling interface.
Parameters: Return type:

Function addSideOneRegion

Add region to side one of the interface. If this region has already been added to the interface on side one, then this call will have no effect. If a different region with the same name has already been added to the interface on side one, then a runtime error will be thrown. If a region with the same name has already been added to the interface on side two, then a runtime error will be thrown. If the region name contains invalid characters, a runtime error will be thrown. Parameters:
  • region: Region to be added to side one of the interface.
Parameters: Return type: void

Function addSideTwoRegion

Add region to side two of the interface. If this region has already been added to the interface on side two, then this call will have no effect. If a different region with the same name has already been added to the interface on side two, then a runtime error will be thrown. If a region with the same name has already been added to the interface on side one, then a runtime error will be thrown. If the region name contains invalid characters, a runtime error will be thrown. Parameters:
  • region: Region to be added to side one of the interface.
Parameters: Return type: void

Function getName

Get coupling interface name. Return type: const CouplingInterfaceName &

Function getNumSideOneRegions

Get the number of regions on side one of the interface. Return type: std::size_t

Function getNumSideTwoRegions

Get the number of regions on side two of the interface. Return type: std::size_t

Function getSideOneRegion

Get the region on side one, given an index. Parameters:
  • std::size_t index
Return type: const Region &

Function getSideTwoRegion

Get the region on side two, given an index. Parameters:
  • std::size_t index
Return type: const Region &

Function addDataTransfer

Add a data transfer. Parameters: Return type: void

Function getNumDataTransfers

Get the number of data transfers. Return type: std::size_t

Function getDataTransfer

Get the data transfer, given an index. Parameters:
  • std::size_t index
Return type: const DataTransfer &