PETSc version 3.17.5
Fix/Edit manual page

PetscDeviceContextDuplicate

Duplicates a PetscDeviceContext object

Synopsis

#include "petscdevice.h" 
PetscErrorCode PetscDeviceContextDuplicate(PetscDeviceContext dctx, PetscDeviceContext *dctxdup)
Not Collective, Asynchronous

Input Parameter

dctx - The PetscDeviceContext to duplicate

Output Parameter

dctxdup - The duplicated PetscDeviceContext

Notes

This is a shorthand method for creating a PetscDeviceContext with the exact same settings as another. Note however that the duplicated PetscDeviceContext does not "share" any of the underlying data with the original, (including its current stream-state) they are completely separate objects.

See Also

PetscDeviceContextCreate(), PetscDeviceContextSetDevice(), PetscDeviceContextSetStreamType()

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