PetscDLLibraryOpen — PETSc 3.22.5 documentation

Skip to main content
`Ctrl`+`K`

# PetscDLLibraryOpen

Opens a PETSc dynamic link library

## Synopsis

    PetscErrorCode PetscDLLibraryOpen(MPI_Comm comm, const char path[], PetscDLLibrary *entry)

Collective, No Fortran Support

## Input Parameters

- comm - MPI processes that are opening the library

- path - name of the library, can be a relative or absolute path

## Output Parameter

- entry - a PETSc dynamic link library entry

## Notes

[[<http,ftp>://hostname]/directoryname/]libbasename[.so.1.0]

If the library has the symbol `PetscDLLibraryRegister_basename()` in it then that function is automatically run when the library is opened.

${PETSC_ARCH} occurring in directoryname and filename will be replaced with the appropriate value.

## See Also

`PetscDLLibrary`, `PetscLoadDynamicLibrary()`, `PetscDLLibraryAppend()`, `PetscDLLibraryRetrieve()`, `PetscDLLibrarySym()`, `PetscDLLibraryClose()`

## Level

developer

## Location

src/sys/dll/dl.c

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages