# PetscDLLibraryRetrieve
Copies a PETSc dynamic library from a remote location (if it is remote), indicates if it exits and its local name. 
## Synopsis
```
PetscErrorCode PetscDLLibraryRetrieve(MPI_Comm comm, const char libname[], char *lname, size_t llen, PetscBool *found)
```
Collective


## Input Parameters

- ***comm -*** processors that are opening the library
- ***libname -*** name of the library, can be relative or absolute



## Output Parameters

- ***name -*** actual name of file on local filesystem if found
- ***llen -*** length of the name buffer
- ***found -*** true if the file exists





## Notes
[[<http,ftp>://hostname]/directoryname/]filename[.so.1.0]

${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, or ${any environmental variable}
occurring in directoryname and filename will be replaced with appropriate values.

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/dll/dl.c.html#PetscDLLibraryRetrieve">src/sys/dll/dl.c</A>


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


[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)  
