> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# syscaddinputvariablef Interface Reference

Provide an interface to add an input variable.

## Public Member Functions

| Type | Name |
| - | - |
| type([syscerrorf](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/structfortran_1_1syscerrorf.md)) function | [syscaddinputvariablef](#ad4548778948f68041711cd36c26aca0e) (reg, var) Provide a function to add an input variable to the region. |

## Detailed Description

Provide an interface to add an input variable.

Definition at line [265](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source) of file [syscSystemCouplingF.fi](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source).

## Constructor & Destructor Documentation

### syscaddinputvariablef()

```fortran-free-form theme={null}
type( syscerrorf ) function syscaddinputvariablef(
    type( syscregionf ), intent(in) reg,
    type( syscvariablef ), 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**

| Direction | Name | Description |
| - | - | - |
| \[in] | reg | Region to which the input variable is to be added. |
| \[in] | var | Variable whose values are provided by System Coupling and consumed by the participant. |

**Returns**

a `SyscErrorF` type for error checking.

Definition at line [290](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source) of file [syscSystemCouplingF.fi](https://developer.synopsys.com/docs/system-coupling/system-coupling-fortran-library/syscSystemCouplingF_8fi_source).

```fortran-free-form theme={null}
 !
   import :: syscregionf
   import :: syscvariablef
   import :: syscerrorf
   type(SyscRegionF), intent(in) :: reg
   type(SyscVariableF), intent(in) :: var
   type(SyscErrorF) :: ret
 !
 !DIR$ IF DEFINED(_WIN32) .and. ( .not. DEFINED(SYSTEM_COUPLING_PARTICIPANT_PROXY))
 !DIR$ ATTRIBUTES DLLIMPORT :: syscAddInputVariableF
 !DIR$ ENDIF
 !
```
