> ## 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.

# Interface fortran::syscconnectf

![][Fortran]
![][public]

**Definition**: `syscSystemCouplingF.fi` (line 83)

Provide an interface to connect to System Coupling.

## Members

* [syscconnectf](#interfacefortran_1_1syscconnectf_1af397378cdff4f98ef3c736cdda2dc2a0)
* [syscconnectparallelf](#interfacefortran_1_1syscconnectf_1a15b29cc1bce67f869dea1b183de9c569)

## Public functions

### Function syscconnectf

![][public]

```fortran-free-form theme={null}
type(syscerrorf) function syscconnectf(scHost, scPort, participantName, buildInformation)
```

Provide a function to establish connection to System Coupling.

A participant must have obtained the host and port information from System Coupling prior to calling this function (e.g. via an input argument when participant application was started).

If using a support MPI distribution, this function should be called on all ranks that belong to the `MPI_COMM_WORLD` communicator.

**Parameters**:

* **scHost**: Name of the host on which System Coupling is running.
* **scPort**: Port number on which System Coupling is listening for participant connections.
* **participantName**: Name of this participant (e.g. "MAPDL-1").
* **buildInformation**: Information about the build of this participant solver.

**Returns**:

a `SyscErrorF` type that can be checked for any errors.

**Parameters**:

* scHostscHost
* scPortscPort
* participantNameparticipantName
* buildInformationbuildInformation

**Return type**: type([syscerrorf](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/fortran-reference/structfortran_1_1syscerrorf.md)) function

### Function syscconnectparallelf

![][public]

```fortran-free-form theme={null}
type(syscerrorf) function syscconnectparallelf(scHost, scPort, participantName, communicator, buildInformation)
```

Provide a function to establish connection to System Coupling and pass a custom MPI communicator.

A participant must have obtained the host and port information from System Coupling prior to calling this function (e.g. via an input argument when participant application was started).

**Parameters**:

* **scHost**: Name of the host on which System Coupling is running.
* **scPort**: Port number on which System Coupling is listening for participant connections.
* **participantName**: Name of this participant (e.g. "MAPDL-1").
* **communicator**: MPI communicator on which all API calls are made.
* **buildInformation**: Information about the build of this participant solver.

**Returns**:

a `SyscErrorF` type that can be checked for any errors.

**Parameters**:

* scHostscHost
* scPortscPort
* participantNameparticipantName
* communicatorcommunicator
* buildInformationbuildInformation

**Return type**: type([syscerrorf](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/2025-r2/fortran-reference/structfortran_1_1syscerrorf.md)) function

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[Fortran]: https://img.shields.io/badge/language-Fortran-blue "Fortran"
