:orphan:
# PetscGetArchType
Returns the $PETSC_ARCH that was used for this configuration of PETSc 
## Synopsis
```
#include "petscsys.h"  
PetscErrorCode PetscGetArchType(char str[], size_t slen)
```
Not Collective


## Input Parameter

- ***slen -*** length of string buffer



## Output Parameter

- ***str -*** string area to contain architecture name, should be at least
10 characters long. Name is truncated if string is not long enough.





## Note
This name is arbitrary and need not correspond to the physical hardware or the software running on the system.


## Fortran Note
This routine has the format
```none
       character*(10) str
       call PetscGetArchType(str,ierr)
```



## See Also
 `PetscGetUserName()`, `PetscGetHostName()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/arch.c.html#PetscGetArchType">src/sys/utils/arch.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/arch.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)  
