#include /*I "petscsys.h" I*/ /*@C PetscGetArchType - Returns a standardized architecture type for the machine that is executing this routine. 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. Level: developer Concepts: machine type Concepts: architecture Fortran Version: In Fortran this routine has the format $ character*(10) str $ call PetscGetArchType(str,ierr) .seealso: PetscGetUserName(),PetscGetHostName() @*/ PetscErrorCode PetscGetArchType(char str[],size_t slen) { PetscErrorCode ierr; PetscFunctionBegin; #if defined(PETSC_ARCH) ierr = PetscStrncpy(str,PETSC_ARCH,slen-1);CHKERRQ(ierr); str[slen-1] = 0; #else #error "$PETSC_ARCH/include/petscconf.h is missing PETSC_ARCH" #endif PetscFunctionReturn(0); }