# PetscCallBLAS
Calls a BLAS or LAPACK routine with error check handling Not collective


## Synopsis
```
#include <petscsys.h>
void PetscCallBLAS(char *name,routine)
```

## Input Parameters

- ***name -*** string that gives the name of the function being called
- ***routine -*** actual call to the routine including its arguments





## Developer Note
This is so that when a user or external library routine results in a crash or corrupts memory, they get blamed instead of PETSc.


## See Also
 `PetscCall()`, `PetscStackPushNoCheck()`, `PetscStackPush()`, `PetscCallExternal()`, `PetscStackCallExternalVoid()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscblaslapack.h.html#PetscCallBLAS">include/petscblaslapack.h</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex59.c.html">src/ksp/ksp/tutorials/ex59.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex50.c.html">src/ts/tutorials/ex50.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscblaslapack.h)


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