    

 ## On this page

  

 

 # syscaddoutputvariablef Interface Reference

 Last update: 17.07.2025 

Provide an interface to add an output variable. [More...](interfacefortran_1_1syscaddoutputvariablef.xhtml#details)

## <a name="pub-methods"></a>Public Member Functions

type([syscerrorf](structfortran_1_1syscerrorf.xhtml)) function [syscaddoutputvariablef](interfacefortran_1_1syscaddoutputvariablef.xhtml#a9b2b363022ddacc75a4151891aed83b8) (reg, var) Provide a function to add an output variable to the region. [More...](interfacefortran_1_1syscaddoutputvariablef.xhtml#a9b2b363022ddacc75a4151891aed83b8)  
 <a id="details" name="details"></a>## Detailed Description

Provide an interface to add an output variable.

Definition at line [311](syscSystemCouplingF_8fi_source.xhtml#l00311) of file [syscSystemCouplingF.fi](syscSystemCouplingF_8fi_source.xhtml).



## Constructor &amp; Destructor Documentation

<a id="a9b2b363022ddacc75a4151891aed83b8"></a>## [◆ ](#a9b2b363022ddacc75a4151891aed83b8)syscaddoutputvariablef()

 type([syscerrorf](structfortran_1_1syscerrorf.xhtml)) function [syscaddoutputvariablef](interfacefortran_1_1syscaddoutputvariablef.xhtml)  ( type([syscregionf](structfortran_1_1syscregionf.xhtml)), intent(in)  *reg*,    type([syscvariablef](structfortran_1_1syscvariablef.xhtml)), intent(in)  *var*   ) 

Provide a function to add an output variable to the region.

If this variable has already been added to the region as an output variable, then this call will have no effect.

If a different variable with the same name has already been added to the region as an output variable, then an error will be returned.

If a variable with the same name has already been added to the region as an input variable, then an error will be returned.

If the variable name contains invalid characters, then an error will be returned.

If the region discretization type is point cloud, then the location of the variable added to this region is insignificant.

Parameters \[in\]regRegion to which the output variable is to be added.\[in\]varVariable whose values are consumed by System Coupling and provided by the participant.Returnsa `SyscErrorF` type for error checking. Definition at line [337](syscSystemCouplingF_8fi_source.xhtml#l00337) of file [syscSystemCouplingF.fi](syscSystemCouplingF_8fi_source.xhtml).

<a name="l00338"></a> 338 !

<a name="l00339"></a> 339 import :: syscregionf

<a name="l00340"></a> 340 import :: syscvariablef

<a name="l00341"></a> 341 import :: syscerrorf

<a name="l00342"></a> 342 type(SyscRegionF), intent(in) :: reg

<a name="l00343"></a> 343 type(SyscVariableF), intent(in) :: var

<a name="l00344"></a> 344 type(SyscErrorF) :: ret

<a name="l00345"></a> 345 !

<a name="l00346"></a> 346 !DIR$ IF DEFINED(\_WIN32) .and. ( .not. DEFINED(SYSTEM\_COUPLING\_PARTICIPANT\_PROXY))

<a name="l00347"></a> 347 !DIR$ ATTRIBUTES DLLIMPORT :: syscAddOutputVariableF

<a name="l00348"></a> 348 !DIR$ ENDIF

<a name="l00349"></a> 349 !