---
name: "pvm_getopt"
section: "3"
platform: "linux"
package: "pvm-dev"
version: "3.4.2-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/pvm_getopt"
---

# pvm\_getopt(3)

Returns the value of libpvm options.

## NAME

pvm\_getopt - Returns the value of libpvm options.

## SYNOPSIS

```
C	int val = pvm_getopt( int what )
Fortran	call pvmfgetopt( what, val )
```

## PARAMETERS

- what

  **Integer defining option to get.** **One of:**

  ```
  PvmRoute            1    Message routing policy
  PvmDebugMask        2    Libpvm debug mask
  PvmAutoErr          3    Auto error reporting
  PvmOutputTid        4    Stdout destination for children
  PvmOutputCode       5    Output message tag
  PvmTraceTid         6    Trace data destination for children
  PvmTraceCode        7    Trace message tag
  PvmFragSize         8    Message fragment size
  PvmResvTids         9    Allow messages to reserved tags and TIDs
  PvmSelfOutputTid   10    Stdout destination
  PvmSelfOutputCode  11    Output message tag
  PvmSelfTraceTid    12    Trace data destination
  PvmSelfTraceCode   13    Trace message tag
  PvmShowTids        14    pvm_catchout prints task ids with output
  PvmPollType        15    Message wait policy (shared memory)
  PvmPollTime        16    Message spinwait duration
  ```

- val

  **Integer returning the value of the option.**

## DESCRIPTION

**The routine** *pvm\_getopt* **returns the value of the specified option in PVM.** **For a discussion of options and values,** **see** *pvm\_setopt*.

If an error occurs, the PVM error code is returned in place of the option value.

## EXAMPLES

```
C:
	val = pvm_getopt( PvmFragSize );
Fortran:
	CALL PVMFGETOPT( PVMAUTOERR, VAL )
```

## ERRORS

This error condition can be returned

- PvmBadParam

  giving an invalid value.

## SEE ALSO

pvm\_setopt(3PVM)
