:orphan:
# PetscPOpenSetMachine
Sets the name of the default machine to run `PetscPOpen()` calls on 
## Synopsis
```
PetscErrorCode PetscPOpenSetMachine(const char machine[])
```
Logically Collective, but only MPI rank 0 runs the command


## Input Parameter

- ***machine -*** machine to run command on or `NULL` for the current machine



## Options Database Key

- ***-popen_machine <machine> -*** run the process on this machine





## See Also
 `PetscFOpen()`, `PetscFClose()`, `PetscPClose()`, `PetscPOpen()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/fileio/mpiuopen.c.html#PetscPOpenSetMachine">src/sys/fileio/mpiuopen.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/fileio/mpiuopen.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
