    

 ## On this page

  

 

 # syscaddinputvariablef Interface Reference

 Last update: 17.07.2025 

Provide an interface to add an input variable. [More...](interfacefortran_1_1syscaddinputvariablef.xhtml#details)

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

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

Provide an interface to add an input variable.

Definition at line [265](syscSystemCouplingF_8fi_source.xhtml#l00265) of file [syscSystemCouplingF.fi](syscSystemCouplingF_8fi_source.xhtml).



## Constructor &amp; Destructor Documentation

<a id="ad4548778948f68041711cd36c26aca0e"></a>## [◆ ](#ad4548778948f68041711cd36c26aca0e)syscaddinputvariablef()

 type([syscerrorf](structfortran_1_1syscerrorf.xhtml)) function [syscaddinputvariablef](interfacefortran_1_1syscaddinputvariablef.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 input variable to the region.

If this variable has already been added to the region as an input 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 input variable, then an error will be returned.

If a variable with the same name has already been added to the region as an output 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 input variable is to be added.\[in\]varVariable whose values are provided by System Coupling and consumed by the participant.Returnsa `SyscErrorF` type for error checking. Definition at line [290](syscSystemCouplingF_8fi_source.xhtml#l00290) of file [syscSystemCouplingF.fi](syscSystemCouplingF_8fi_source.xhtml).

<a name="l00291"></a> 291 !

<a name="l00292"></a> 292 import :: syscregionf

<a name="l00293"></a> 293 import :: syscvariablef

<a name="l00294"></a> 294 import :: syscerrorf

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

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

<a name="l00297"></a> 297 type(SyscErrorF) :: ret

<a name="l00298"></a> 298 !

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

<a name="l00300"></a> 300 !DIR$ ATTRIBUTES DLLIMPORT :: syscAddInputVariableF

<a name="l00301"></a> 301 !DIR$ ENDIF

<a name="l00302"></a> 302 !