PETSc version 3.16.1
PetscDeviceContextGetCurrentContext
Get the current active PetscDeviceContext
Synopsis
#include "petscdevice.h"
PetscErrorCode PetscDeviceContextGetCurrentContext(PetscDeviceContext *dctx)
Not Collective, Asynchronous
Output Parameter
Notes
The user generally should not destroy contexts retrieved with this routine unless they themselves have created
them. There exists no protection against destroying the root context.
Developer Notes
This routine creates the "root" context the first time it is called, registering its
destructor to PetscFinalize(). The root context is synchronized before being destroyed.
See Also
PetscDeviceContextSetCurrentContext(), PetscDeviceContextFork(),
PetscDeviceContextJoin(), PetscDeviceContextCreate()
Level
beginner
Location
src/sys/objects/device/interface/dcontext.cxx
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages