| /petsc/src/binding/petsc4py/test/ |
| H A D | test_object.py | 15 self.obj = self.CLASS() 16 getattr(self.obj, self.FACTORY)(*self.TARGS, **self.KARGS) 17 if not self.obj: 18 self.obj.create() 21 self.obj = None 26 classid = self.obj.getClassId() 28 if isinstance(self.obj, PETSc.DMDA): 37 classid = self.obj.getClassId() 41 self.assertTrue(isinstance(self.obj, self.CLASS)) 42 self.assertTrue(type(self.obj) is self.CLASS) [all …]
|
| H A D | test_gc.py | 20 self.obj = self.CLASS().create(comm=PETSc.COMM_SELF) 24 self.assertTrue(wref() is self.obj) 25 self.obj = None 40 return weakref.ref(self.obj) 43 self.obj.setAttr('myself', self.obj) 46 self.obj.setAttr('mymeth', self.obj.view) 53 a.obj = self.obj 54 self.obj.setAttr('myinst', a) 101 self.obj.setAppCtx(self.obj) 112 self.obj.setAppCtx(self.obj) [all …]
|
| /petsc/src/sys/objects/ |
| H A D | inherit.c | 101 PetscErrorCode PetscHeaderDestroy_Private(PetscObject obj, PetscBool clear_for_reuse) in PetscHeaderDestroy_Private() argument 104 PetscValidHeader(obj, 1); in PetscHeaderDestroy_Private() 105 PetscCall(PetscComposedQuantitiesDestroy(obj)); in PetscHeaderDestroy_Private() 113 if (obj->python_destroy) { in PetscHeaderDestroy_Private() 114 void *python_context = obj->python_context; in PetscHeaderDestroy_Private() 115 PetscErrorCode (*python_destroy)(void *) = obj->python_destroy; in PetscHeaderDestroy_Private() 117 obj->python_context = NULL; in PetscHeaderDestroy_Private() 118 obj->python_destroy = NULL; in PetscHeaderDestroy_Private() 121 PetscCall(PetscObjectDestroyOptionsHandlers(obj)); in PetscHeaderDestroy_Private() 122 PetscCall(PetscObjectListDestroy(&obj->olist)); in PetscHeaderDestroy_Private() [all …]
|
| H A D | pname.c | 21 PetscErrorCode PetscObjectSetName(PetscObject obj, const char name[]) in PetscObjectSetName() argument 24 PetscValidHeader(obj, 1); in PetscObjectSetName() 25 PetscCall(PetscFree(obj->name)); in PetscObjectSetName() 26 PetscCall(PetscStrallocpy(name, &obj->name)); in PetscObjectSetName() 52 PetscErrorCode PetscObjectPrintClassNamePrefixType(PetscObject obj, PetscViewer viewer) in PetscObjectPrintClassNamePrefixType() argument 60 if (obj->donotPetscObjectPrintClassNamePrefixType) PetscFunctionReturn(PETSC_SUCCESS); in PetscObjectPrintClassNamePrefixType() 67 PetscCallMPI(MPI_Comm_size(PetscObjectComm(obj), &size)); in PetscObjectPrintClassNamePrefixType() 68 …rocess%s\n", obj->class_name, obj->name ? " " : "", obj->name ? obj->name : "", obj->prefix ? " ("… in PetscObjectPrintClassNamePrefixType() 70 if (obj->type_name) { in PetscObjectPrintClassNamePrefixType() 71 PetscCall(PetscViewerASCIIPrintf(viewer, " type: %s\n", obj->type_name)); in PetscObjectPrintClassNamePrefixType() [all …]
|
| H A D | prefix.c | 28 PetscErrorCode PetscObjectGetOptions(PetscObject obj, PetscOptions *options) in PetscObjectGetOptions() argument 31 PetscValidHeader(obj, 1); in PetscObjectGetOptions() 32 *options = obj->options; in PetscObjectGetOptions() 56 PetscErrorCode PetscObjectSetOptions(PetscObject obj, PetscOptions options) in PetscObjectSetOptions() argument 59 PetscValidHeader(obj, 1); in PetscObjectSetOptions() 60 obj->options = options; in PetscObjectSetOptions() 84 PetscErrorCode PetscObjectSetOptionsPrefix(PetscObject obj, const char prefix[]) in PetscObjectSetOptionsPrefix() argument 87 PetscValidHeader(obj, 1); in PetscObjectSetOptionsPrefix() 91 if (prefix != obj->prefix) { in PetscObjectSetOptionsPrefix() 94 PetscCall(PetscFree(obj->prefix)); in PetscObjectSetOptionsPrefix() [all …]
|
| H A D | destroy.c | 19 PetscErrorCode PetscComposedQuantitiesDestroy(PetscObject obj) in PetscComposedQuantitiesDestroy() argument 22 PetscValidHeader(obj, 1); in PetscComposedQuantitiesDestroy() 23 …posedData((void ***)&obj->intstarcomposeddata, &obj->intstarcomposedstate, &obj->intstar_idmax, (v… in PetscComposedQuantitiesDestroy() 24 …sedData((void ***)&obj->realstarcomposeddata, &obj->realstarcomposedstate, &obj->realstar_idmax, (… in PetscComposedQuantitiesDestroy() 26 …ata((void ***)&obj->scalarstarcomposeddata, &obj->scalarstarcomposedstate, &obj->scalarstar_idmax,… in PetscComposedQuantitiesDestroy() 44 PetscErrorCode PetscObjectDestroy(PetscObject *obj) in PetscObjectDestroy() argument 47 if (!obj || !*obj) PetscFunctionReturn(PETSC_SUCCESS); in PetscObjectDestroy() 48 PetscValidHeader(*obj, 1); in PetscObjectDestroy() 49 …scCheck((*obj)->bops->destroy, PETSC_COMM_SELF, PETSC_ERR_PLIB, "This PETSc object of class %s doe… in PetscObjectDestroy() 50 PetscCall((*(*obj)->bops->destroy)(obj)); in PetscObjectDestroy() [all …]
|
| H A D | state.c | 30 PetscErrorCode PetscObjectStateGet(PetscObject obj, PetscObjectState *state) in PetscObjectStateGet() argument 33 PetscValidHeader(obj, 1); in PetscObjectStateGet() 35 *state = obj->state; in PetscObjectStateGet() 61 PetscErrorCode PetscObjectStateSet(PetscObject obj, PetscObjectState state) in PetscObjectStateSet() argument 64 PetscValidHeader(obj, 1); in PetscObjectStateSet() 65 obj->state = state; in PetscObjectStateSet() 149 PetscErrorCode PetscObjectComposedDataIncreaseInt(PetscObject obj) in PetscObjectComposedDataIncreaseInt() argument 152 …PetscCall(PetscObjectComposedDataIncrease(&obj->int_idmax, &obj->intcomposeddata, &obj->intcompose… in PetscObjectComposedDataIncreaseInt() 156 PetscErrorCode PetscObjectComposedDataIncreaseIntstar(PetscObject obj) in PetscObjectComposedDataIncreaseIntstar() argument 159 …PetscCall(PetscObjectComposedDataStarIncrease(&obj->intstar_idmax, &obj->intstarcomposeddata, &obj… in PetscObjectComposedDataIncreaseIntstar() [all …]
|
| H A D | gcomm.c | 25 MPI_Comm PetscObjectComm(PetscObject obj) in PetscObjectComm() argument 27 return obj ? obj->comm : MPI_COMM_NULL; in PetscObjectComm() 46 PetscErrorCode PetscObjectGetComm(PetscObject obj, MPI_Comm *comm) in PetscObjectGetComm() argument 49 PetscValidHeader(obj, 1); in PetscObjectGetComm() 51 *comm = obj->comm; in PetscObjectGetComm() 76 PetscErrorCode PetscObjectGetTabLevel(PetscObject obj, PetscInt *tab) in PetscObjectGetTabLevel() argument 79 PetscValidHeader(obj, 1); in PetscObjectGetTabLevel() 81 *tab = obj->tablevel; in PetscObjectGetTabLevel() 106 PetscErrorCode PetscObjectSetTabLevel(PetscObject obj, PetscInt tab) in PetscObjectSetTabLevel() argument 109 PetscValidHeader(obj, 1); in PetscObjectSetTabLevel() [all …]
|
| H A D | olist.c | 41 if (!nlist->skipdereference) PetscCall(PetscObjectDereference(nlist->obj)); in PetscObjectListRemoveReference() 69 PetscErrorCode PetscObjectListAdd(PetscObjectList *fl, const char name[], PetscObject obj) in PetscObjectListAdd() argument 76 if (!obj) { /* this means remove from list if it is there */ in PetscObjectListAdd() 86 if (!nlist->skipdereference) PetscCall(PetscObjectDereference(nlist->obj)); in PetscObjectListAdd() 100 PetscCall(PetscObjectReference(obj)); in PetscObjectListAdd() 101 if (!nlist->skipdereference) PetscCall(PetscObjectDereference(nlist->obj)); in PetscObjectListAdd() 103 nlist->obj = obj; in PetscObjectListAdd() 112 olist->obj = obj; in PetscObjectListAdd() 114 PetscCall(PetscObjectReference(obj)); in PetscObjectListAdd() 147 if (!fl->skipdereference) PetscCall(PetscObjectDereference(fl->obj)); in PetscObjectListDestroy() [all …]
|
| H A D | garbage.c | 52 PetscErrorCode PetscObjectDelayedDestroy(PetscObject *obj) in PetscObjectDelayedDestroy() argument 60 PetscAssertPointer(obj, 1); in PetscObjectDelayedDestroy() 62 if (*obj != NULL) { in PetscObjectDelayedDestroy() 64 if (!(*obj)->non_cyclic_references) { in PetscObjectDelayedDestroy() 65 count = --(*obj)->refct; in PetscObjectDelayedDestroy() 67 PetscCall((*obj)->non_cyclic_references(*obj, &count)); in PetscObjectDelayedDestroy() 69 --(*obj)->refct; in PetscObjectDelayedDestroy() 73 (*obj)->refct = 1; in PetscObjectDelayedDestroy() 74 PetscCall(PetscObjectGetComm(*obj, &comm)); in PetscObjectDelayedDestroy() 78 PetscCall(PetscObjectDestroy(obj)); in PetscObjectDelayedDestroy() [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 38 def add_function_fix_to_bad_source(linter: Linter, obj: Cursor, func_cursor: Cursor, valid_func_nam… 58 obj, 63 f'Due to {obj.get_formatted_blurb()}', location=obj.extent.start 68 def convert_to_correct_PetscValidLogicalCollectiveXXX(linter: Linter, obj: Cursor, obj_type: clx.Ty… 89 if 'PetscReal' in obj.derivedtypename: 91 elif 'PetscScalar' in obj.derivedtypename: 98 if 'PetscInt' in obj.derivedtypename: 100 elif 'PetscMPIInt' in obj.derivedtypename: 103 add_function_fix_to_bad_source(linter, obj, func_cursor, valid_func_name) 106 def check_is_type_x_and_not_type_y(type_x: str, type_y: str, linter: Linter, obj: Cursor, obj_type:… [all …]
|
| /petsc/src/sys/ams/ |
| H A D | pams.c | 22 PetscErrorCode PetscObjectSAWsTakeAccess(PetscObject obj) in PetscObjectSAWsTakeAccess() argument 24 if (obj->amsmem) { in PetscObjectSAWsTakeAccess() 47 PetscErrorCode PetscObjectSAWsGrantAccess(PetscObject obj) in PetscObjectSAWsGrantAccess() argument 49 if (obj->amsmem) { in PetscObjectSAWsGrantAccess() 96 PetscErrorCode PetscObjectSAWsBlock(PetscObject obj) in PetscObjectSAWsBlock() argument 99 PetscValidHeader(obj, 1); in PetscObjectSAWsBlock() 101 if (!obj->amspublishblock || !obj->amsmem) PetscFunctionReturn(PETSC_SUCCESS); in PetscObjectSAWsBlock() 119 PetscErrorCode PetscObjectSAWsSetBlock(PetscObject obj, PetscBool flg) in PetscObjectSAWsSetBlock() argument 122 PetscValidHeader(obj, 1); in PetscObjectSAWsSetBlock() 123 obj->amspublishblock = flg; in PetscObjectSAWsSetBlock() [all …]
|
| /petsc/src/tao/unconstrained/tutorials/output/ |
| H A D | rosenbrock1_snes_ls_armijo.out | 2 …Line search: Linear step no good, shrinking lambda, obj 6.437499999947e+00 lambda=5.00000000000000… 3 Line search: Linear step, obj 9.492187499974e-01 lambda=2.5000000000000000e-01 5 Line search: Using full step: old obj 9.492187499974e-01 new obj 4.825110489706e-01 7 Line search: Linear step, obj 4.519496983111e-01 lambda=5.0000000000000000e-01 9 Line search: Using full step: old obj 4.519496983111e-01 new obj 1.886143396344e-01 11 Line search: Linear step, obj 1.374605953681e-01 lambda=5.0000000000000000e-01 13 Line search: Using full step: old obj 1.374605953681e-01 new obj 5.484363667961e-02 15 Line search: Linear step, obj 2.913593366973e-02 lambda=5.0000000000000000e-01 17 Line search: Using full step: old obj 2.913593366973e-02 new obj 9.860854132982e-03 19 Line search: Using full step: old obj 9.860854132982e-03 new obj 2.296933836795e-03 [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscobj.pxi | 65 cdef inline PetscErrorCode PetscINCREF(PetscObject *obj) noexcept nogil: 66 if obj == NULL: return PETSC_SUCCESS 67 if obj[0] == NULL: return PETSC_SUCCESS 68 return PetscObjectReference(obj[0]) 70 cdef inline PetscErrorCode PetscDECREF(PetscObject *obj) noexcept nogil: 71 if obj == NULL: return PETSC_SUCCESS 72 if obj[0] == NULL: return PETSC_SUCCESS 73 return PetscObjectDereference(obj[0]) 75 cdef inline PetscErrorCode PetscCLEAR(PetscObject* obj) noexcept nogil: argument 76 if obj == NULL: return PETSC_SUCCESS [all …]
|
| H A D | Object.pyx | 15 self.obj = &self.oval 18 CHKERR(PetscDEALLOC(&self.obj[0])) 19 self.obj = NULL 25 if op == 2: return (s.obj[0] == o.obj[0]) 26 elif op == 3: return (s.obj[0] != o.obj[0]) 30 return self.obj[0] != NULL 33 cdef Object obj = type(self)() 34 cdef PetscObject o = self.obj[0] 37 obj.obj[0] = o 38 return obj [all …]
|
| /petsc/include/petsc/private/ |
| H A D | petscimpl.h | 178 PETSC_EXTERN_TYPEDEF typedef PetscErrorCode PetscObjectDestroyFn(PetscObject *obj); 196 PETSC_EXTERN_TYPEDEF typedef PetscErrorCode PetscObjectViewFn(PetscObject obj, PetscViewer v); 333 PETSC_EXTERN PetscErrorCode PetscComposedQuantitiesDestroy(PetscObject obj); 899 #define PetscTryMethod(obj, A, B, C) \ argument 902 PetscCall(PetscObjectQueryFunction((PetscObject)(obj), A, &_7_f)); \ 929 #define PetscUseMethod(obj, A, B, C) \ argument 932 PetscCall(PetscObjectQueryFunction((PetscObject)(obj), A, &_7_f)); \ 933 …PetscCheck(_7_f, PetscObjectComm((PetscObject)(obj)), PETSC_ERR_SUP, "Cannot locate function %s in… 951 #define PetscUseTypeMethod(obj, OP, ...) \ argument 955 …obj)->ops->OP, PetscObjectComm((PetscObject)obj), PETSC_ERR_SUP, "No method %s for %s of type %s",… [all …]
|
| /petsc/src/sys/objects/device/tests/output/ |
| H A D | ex7_with_info_sycl.out | 3 [0] <device> MarkFromID_IncompatibleModes(): dctx 2 (global root) - obj 8 (memory allocation): new … 4 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 2 (global root) - obj 8 (memory all… 5 [0] <device> MarkFromID_IncompatibleModes(): dctx 2 (global root) - obj 8 (memory deallocation): ne… 6 [0] <device> MarkFromID_IncompatibleModes_UpdateLastWrite(): dctx 2 (global root) - obj 8 (memory d… 7 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 2 (global root) - obj 8 (memory dea… 8 [0] <device> MarkFromID_IncompatibleModes(): dctx 2 (global root) - obj 12 (memory allocation): new… 9 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 2 (global root) - obj 12 (memory al… 10 [0] <device> MarkFromID_IncompatibleModes(): dctx 2 (global root) - obj 13 (memory allocation): new… 11 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 2 (global root) - obj 13 (memory al… 12 [0] <device> MarkFromID_IncompatibleModes(): dctx 2 (global root) - obj 14 (memory allocation): new… [all …]
|
| H A D | ex7_with_info_cuda.out | 3 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 58 (memory allocation): ne… 4 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 58 (memory a… 5 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 58 (memory deallocation): … 6 [0] <device> MarkFromID_IncompatibleModes_UpdateLastWrite(): dctx 53 (global root) - obj 58 (memory… 7 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 58 (memory d… 8 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 63 (memory allocation): ne… 9 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 63 (memory a… 10 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 64 (memory allocation): ne… 11 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 64 (memory a… 12 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 65 (memory allocation): ne… [all …]
|
| H A D | ex7_with_info_hip.out | 3 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 58 (memory allocation): ne… 4 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 58 (memory a… 5 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 58 (memory deallocation): … 6 [0] <device> MarkFromID_IncompatibleModes_UpdateLastWrite(): dctx 53 (global root) - obj 58 (memory… 7 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 58 (memory d… 8 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 63 (memory allocation): ne… 9 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 63 (memory a… 10 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 64 (memory allocation): ne… 11 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 64 (memory a… 12 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 65 (memory allocation): ne… [all …]
|
| H A D | ex7_with_info_host_no_device.out | 3 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 56 (memory allocation): ne… 4 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 56 (memory a… 5 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 56 (memory deallocation): … 6 [0] <device> MarkFromID_IncompatibleModes_UpdateLastWrite(): dctx 53 (global root) - obj 56 (memory… 7 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 56 (memory d… 8 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 60 (memory allocation): ne… 9 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 60 (memory a… 10 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 61 (memory allocation): ne… 11 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 61 (memory a… 12 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 62 (memory allocation): ne… [all …]
|
| H A D | ex7_with_info_host_with_device.out | 3 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 56 (memory allocation): ne… 4 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 56 (memory a… 5 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 56 (memory deallocation): … 6 [0] <device> MarkFromID_IncompatibleModes_UpdateLastWrite(): dctx 53 (global root) - obj 56 (memory… 7 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 56 (memory d… 8 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 60 (memory allocation): ne… 9 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 60 (memory a… 10 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 61 (memory allocation): ne… 11 [0] <device> PetscDeviceContextMarkIntentFromID_Private(): dctx 53 (global root) - obj 61 (memory a… 12 [0] <device> MarkFromID_IncompatibleModes(): dctx 53 (global root) - obj 62 (memory allocation): ne… [all …]
|
| /petsc/src/sys/objects/ftn-custom/ |
| H A D | zinheritf.c | 21 static PetscErrorCode ourhandler(PetscObject obj, PetscOptionItems items, PetscCtx ctx) in ourhandler() argument 25 …PetscCall(PetscObjectGetFortranCallback((PetscObject)obj, PETSC_FORTRAN_CALLBACK_CLASS, _cb.handle… in ourhandler() 27 …UseFortranCallback(obj, _cb.handler, (PetscObject *, PetscOptionItems *, PetscCtx, PetscErrorCode … in ourhandler() 30 static PetscErrorCode ourdestroy(PetscObject obj, PetscCtx ctx) in ourdestroy() argument 34 …PetscCall(PetscObjectGetFortranCallback((PetscObject)obj, PETSC_FORTRAN_CALLBACK_CLASS, _cb.destro… in ourdestroy() 36 …etscObjectUseFortranCallback(obj, _cb.destroy, (PetscObject *, PetscCtx, PetscErrorCode *PETSC_F90… in ourdestroy() 39 PETSC_EXTERN void petscobjectaddoptionshandler_(PetscObject *obj, void (*handle)(PetscObject *, Pet… in petscobjectaddoptionshandler_() argument 41 …*ierr = PetscObjectSetFortranCallback((PetscObject)*obj, PETSC_FORTRAN_CALLBACK_CLASS, &_cb.handle… in petscobjectaddoptionshandler_() 44 …*ierr = PetscObjectSetFortranCallback((PetscObject)*obj, PETSC_FORTRAN_CALLBACK_CLASS, &_cb.handle… in petscobjectaddoptionshandler_() 47 …*ierr = PetscObjectSetFortranCallback((PetscObject)*obj, PETSC_FORTRAN_CALLBACK_CLASS, &_cb.destro… in petscobjectaddoptionshandler_() [all …]
|
| /petsc/src/sys/classes/viewer/impls/ams/ |
| H A D | amsopen.c | 61 PetscErrorCode PetscObjectViewSAWs(PetscObject obj, PetscViewer viewer) in PetscObjectViewSAWs() argument 67 PetscValidHeader(obj, 1); in PetscObjectViewSAWs() 68 if (obj->amsmem) PetscFunctionReturn(PETSC_SUCCESS); in PetscObjectViewSAWs() 71 PetscCheck(obj->name, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Object must already have been named"); in PetscObjectViewSAWs() 73 obj->amsmem = PETSC_TRUE; in PetscObjectViewSAWs() 74 PetscCall(PetscSNPrintf(dir, 1024, "/PETSc/Objects/%s/Class", obj->name)); in PetscObjectViewSAWs() 75 PetscCallSAWs(SAWs_Register, (dir, &obj->class_name, 1, SAWs_READ, SAWs_STRING)); in PetscObjectViewSAWs() 76 PetscCall(PetscSNPrintf(dir, 1024, "/PETSc/Objects/%s/Type", obj->name)); in PetscObjectViewSAWs() 77 PetscCallSAWs(SAWs_Register, (dir, &obj->type_name, 1, SAWs_READ, SAWs_STRING)); in PetscObjectViewSAWs() 78 PetscCall(PetscSNPrintf(dir, 1024, "/PETSc/Objects/%s/__Id", obj->name)); in PetscObjectViewSAWs() [all …]
|
| /petsc/src/binding/petsc4py/conf/ |
| H A D | stubgen.py | 6 def is_cyfunction(obj): argument 7 return type(obj).__name__ == 'cython_function_or_method' 10 def is_function(obj): argument 11 return inspect.isbuiltin(obj) or is_cyfunction(obj) or type(obj) is type(ord) 14 def is_method(obj): argument 16 inspect.ismethoddescriptor(obj) 17 or inspect.ismethod(obj) 18 or is_cyfunction(obj) 19 or type(obj) 28 def is_classmethod(obj): argument [all …]
|
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | apidoc.py | 10 def is_cyfunction(obj): argument 11 return type(obj).__name__ == 'cython_function_or_method' 14 def is_function(obj): argument 15 return inspect.isbuiltin(obj) or is_cyfunction(obj) or type(obj) is type(ord) 18 def is_method(obj): argument 20 inspect.ismethoddescriptor(obj) 21 or inspect.ismethod(obj) 22 or is_cyfunction(obj) 23 or type(obj) 32 def is_classmethod(obj): argument [all …]
|