Home
last modified time | relevance | path

Searched refs:refct (Results 1 – 25 of 96) sorted by relevance

1234

/petsc/src/mat/utils/
H A Dgcreate.c429 PetscInt refct; in MatHeaderMerge() local
447 refct = ((PetscObject)A)->refct; in MatHeaderMerge()
483 ((PetscObject)A)->refct = refct; in MatHeaderMerge()
533 PetscInt refct; in MatHeaderReplace() local
543refct == 1, PetscObjectComm((PetscObject)C), PETSC_ERR_ARG_WRONGSTATE, "Object C has refct %" Pets… in MatHeaderReplace()
546 refct = ((PetscObject)A)->refct; in MatHeaderReplace()
552 ((PetscObject)A)->refct = refct; in MatHeaderReplace()
556 ((PetscObject)*C)->refct = 1; in MatHeaderReplace()
/petsc/include/petsc/private/
H A Ddmpatchimpl.h8 PetscInt refct; member
H A Ddmforestimpl.h9 PetscInt refct; member
H A Ddmmbimpl.h52 PetscInt refct; member
H A Ddmswarmimpl.h54 PetscInt refct; member
H A Disimpl.h92 PetscInt refct; member
H A Ddmnetworkimpl.h113 PetscInt refct; /* reference count for the shared data */ member
/petsc/src/sys/objects/
H A Dinherit.c45 h->refct = 1; in PetscHeaderCreate_Private()
126refct <= 0, obj->comm, PETSC_ERR_PLIB, "Destroying a PetscObject (%s) with reference count %" Pets… in PetscHeaderDestroy_Private()
136 obj->refct = 1; in PetscHeaderDestroy_Private()
621 obj->refct++; in PetscObjectReference()
646 *cnt = obj->refct; in PetscObjectGetReference()
676 …else PetscCheck(--obj->refct, PETSC_COMM_SELF, PETSC_ERR_SUP, "This PETSc object does not have a g… in PetscObjectDereference()
957 if (--((PetscObject)*obj)->refct > 0) { in PetscContainerDestroy()
H A Dgarbage.c65 count = --(*obj)->refct; in PetscObjectDelayedDestroy()
69 --(*obj)->refct; in PetscObjectDelayedDestroy()
73 (*obj)->refct = 1; in PetscObjectDelayedDestroy()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DObject.pyx383 cdef PetscInt refct = 0
386 CHKERR(PetscObjectGetReference(obj, &refct))
387 return toInt(refct)
400 cdef PetscInt refct = 0
402 CHKERR(PetscObjectGetReference(obj, &refct))
404 if refct == 1: self.obj[0] = NULL
405 refct -= 1
406 return toInt(refct)
/petsc/include/
H A Dpetsclogtypes.h190 int refct; member
/petsc/src/dm/dt/space/interface/
H A Dspace.c257 if (--((PetscObject)*sp)->refct > 0) { in PetscSpaceDestroy()
261 ((PetscObject)*sp)->refct = 0; in PetscSpaceDestroy()
/petsc/src/dm/partitioner/interface/
H A Dpartitioner.c256 if (--((PetscObject)*part)->refct > 0) { in PetscPartitionerDestroy()
260 ((PetscObject)*part)->refct = 0; in PetscPartitionerDestroy()
/petsc/src/sys/logging/handler/interface/
H A Dloghandler.c63 if (--((PetscObject)h)->refct > 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscLogHandlerDestroy()
94 state->refct++; in PetscLogHandlerSetState()
/petsc/src/dm/impls/patch/
H A Dpatchcreate.c60 mesh->refct = 1; in DMCreate_Patch()
/petsc/src/sys/logging/state/
H A Dlogstate.c37 s->refct = 1; in PetscLogStateCreate()
64 if (s == NULL || --s->refct > 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscLogStateDestroy()
/petsc/src/sys/classes/random/interface/
H A Drandomc.c37 if (--((PetscObject)*r)->refct > 0) { in PetscRandomDestroy()
/petsc/src/dm/dt/dualspace/impls/lagrange/
H A Ddspacelagrange.c8 PetscInt refct; member
38 f->refct = 1; in Petsc1DNodeFamilyCreate()
46 if (nf) nf->refct++; in Petsc1DNodeFamilyReference()
56 if (--(*nf)->refct > 0) { in Petsc1DNodeFamilyDestroy()
309 PetscInt refct; member
334 if (ni) ni->refct++; in PetscLagNodeIndicesReference()
342 (*niNew)->refct = 1; in PetscLagNodeIndicesDuplicate()
358 if (--(*ni)->refct > 0) { in PetscLagNodeIndicesDestroy()
484 ni->refct = 1; in PetscLagNodeIndicesCreateSimplexVertices()
510 ni->refct = 1; in PetscLagNodeIndicesCreateTensorVertices()
[all …]
/petsc/src/vec/is/is/utils/
H A Discoloring.c10 coloring->refct++; in ISColoringReference()
80 if (--(*iscoloring)->refct > 0) { in ISColoringDestroy()
368 (*iscoloring)->refct = 1; in ISColoringCreate()
/petsc/src/ksp/ksp/interface/
H A Diguess.c137 if (--((PetscObject)*guess)->refct > 0) { in KSPGuessDestroy()
H A Ddmksp.c10 if (--((PetscObject)*kdm)->refct > 0) { in DMKSPDestroy()
/petsc/src/sys/classes/bm/interfaces/
H A Dbm.c107 if (--((PetscObject)*bm)->refct > 0) { in PetscBenchDestroy()
/petsc/src/vec/is/ao/interface/
H A Dao.c88 if (--((PetscObject)*ao)->refct > 0) { in AODestroy()
/petsc/src/dm/impls/network/
H A Dnetworkcreate.c289 cloneshared->refct = 1; in DMNetworkInitializeToDefault()
381 network->cloneshared->refct++; in DMClone_Network()
/petsc/src/mat/graphops/color/interface/
H A Dmatcoloring.c106 if (--((PetscObject)*mc)->refct > 0) { in MatColoringDestroy()

1234