Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 103) sorted by relevance

12345

/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetsctao.pxi280 context = tao.get_attr("__objective__")
281 if context is None and ctx != NULL: context = <object>ctx
282 assert context is not None and type(context) is tuple # sanity check
283 (objective, args, kargs) = context
295 context = tao.get_attr("__residual__")
296 if context is None and ctx != NULL: context = <object>ctx
297 assert context is not None and type(context) is tuple # sanity check
298 (residual, args, kargs) = context
309 context = tao.get_attr("__gradient__")
310 if context is None and ctx != NULL: context = <object>ctx
[all …]
H A Dpetscdmshell.pxi81 context = Dm.get_attr('__create_global_vector__')
82 assert context is not None and type(context) is tuple
83 (create_gvec, args, kargs) = context
100 context = Dm.get_attr('__create_local_vector__')
101 assert context is not None and type(context) is tuple
102 (create_lvec, args, kargs) = context
122 context = Dm.get_attr('__g2l_begin__')
123 assert context is not None and type(context) is tuple
124 (begin, args, kargs) = context
138 context = Dm.get_attr('__g2l_end__')
[all …]
H A Dpetscsnes.pxi310 cdef object context = Snes.get_attr('__initialguess__')
311 if context is None and ctx != NULL: context = <object>ctx
312 assert context is not None and type(context) is tuple # sanity check
313 (initialguess, args, kargs) = context
332 cdef object context = Snes.get_attr('__precheck__')
333 if context is None and ctx != NULL: context = <object>ctx
334 assert context is not None and type(context) is tuple # sanity check
335 (precheck, args, kargs) = context
351 cdef object context = Snes.get_attr('__function__')
352 if context is None and ctx != NULL: context = <object>ctx
[all …]
H A Dpetscts.pxi377 cdef object context = Ts.get_attr('__rhsfunction__')
378 if context is None and ctx != NULL: context = <object>ctx
379 assert context is not None and type(context) is tuple # sanity check
380 (function, args, kargs) = context
396 cdef object context = Ts.get_attr('__rhsjacobian__')
397 if context is None and ctx != NULL: context = <object>ctx
398 assert context is not None and type(context) is tuple # sanity check
399 (jacobian, args, kargs) = context
413 cdef object context = Ts.get_attr('__rhsjacobianp__')
414 if context is None and ctx != NULL: context = <object>ctx
[all …]
H A DDMShell.pyx102 context = (create_gvec, args, kargs)
103 self.set_attr('__create_global_vector__', context)
134 context = (create_lvec, args, kargs)
135 self.set_attr('__create_local_vector__', context)
178 context = (begin, begin_args, begin_kargs)
179 self.set_attr('__g2l_begin__', context)
184 context = (end, end_args, end_kargs)
185 self.set_attr('__g2l_end__', context)
190 """Set a `Scatter` context for global to local communication.
197 The global to local `Scatter` context.
[all …]
H A Dpetscksp.pxi291 cdef object context = Ksp.get_attr('__rhs__')
292 if context is None and ctx != NULL: context = <object>ctx
293 assert context is not None and type(context) is tuple # sanity check
294 (computerhs, args, kargs) = context
307 cdef object context = Ksp.get_attr('__operators__')
308 if context is None and ctx != NULL: context = <object>ctx
309 assert context is not None and type(context) is tuple # sanity check
310 (computeops, args, kargs) = context
325 cdef object context = Ksp.get_attr('__presolve__')
326 if context is None and ctx != NULL: context = <object>ctx
[all …]
H A Dpetscpc.pxi387 cdef object context = Pc.get_attr("__patch_compute_operator__")
388 if context is None and ctx != NULL: context = <object>ctx
389 assert context is not None and type(context) is tuple
390 (op, args, kargs) = context
415 cdef object context = Pc.get_attr("__patch_compute_function__")
416 if context is None and ctx != NULL: context = <object>ctx
417 assert context is not None and type(context) is tuple
418 (op, args, kargs) = context
438 cdef object context = Pc.get_attr("__patch_compute_operator_interior_facets__")
439 if context is None and ctx != NULL: context = <object>ctx
[all …]
H A DTAO.pyx290 """Set the application context."""
294 """Return the application context."""
330 context = (objective, args, kargs)
331 self.set_attr("__objective__", context)
332 CHKERR(TaoSetObjective(self.tao, TAO_Objective, <void*>context))
357 context = (residual, args, kargs)
358 self.set_attr("__residual__", context)
359 CHKERR(TaoSetResidualRoutine(self.tao, R.vec, TAO_Residual, <void*>context))
390 context = (jacobian, args, kargs)
391 self.set_attr("__jacobian_residual__", context)
[all …]
H A DDevice.pyx226 Represents an abstract handle to a device context.
256 """Destroy a device context.
337 """Set up the internal data structures for using the device context.
349 """Duplicate a the device context.
364 """Return whether the underlying stream for the device context is idle.
409 The type of stream of the forked device context.
484 """Synchronize a device context.
521 """Return the current device context.
537 """Set the current device context.
545 the default context).
[all …]
H A DSNES.pyx269 # --- application context ---
272 """Set the application context."""
281 """Return the application context."""
773 context = (precheck, args, kargs)
774 self.set_attr('__precheck__', context)
776 CHKERR(SNESLineSearchSetPreCheck(snesls, SNES_PreCheck, <void*> context))
805 context = (initialguess, args, kargs)
806 self.set_attr('__initialguess__', context)
807 CHKERR(SNESSetComputeInitialGuess(self.snes, SNES_InitialGuess, <void*>context))
853 context = (function, args, kargs)
[all …]
H A DTS.pyx175 The visualization context.
198 The visualization context.
575 # --- application context ---
578 """Set the application context.
585 The application context.
591 """Return the application context."""
627 context = (function, args, kargs)
628 self.set_attr('__rhsfunction__', context)
629 CHKERR(TSSetRHSFunction(self.ts, fvec, TS_RHSFunction, <void*>context))
669 context = (jacobian, args, kargs)
[all …]
/petsc/src/sys/yaml/src/
H A Dyaml_private.h92 #define BUFFER_INIT(context,buffer,size) \ argument
97 ((context)->error = YAML_MEMORY_ERROR, \
100 #define BUFFER_DEL(context,buffer) \ argument
132 #define STRING_INIT(context,string,size) \ argument
138 ((context)->error = YAML_MEMORY_ERROR, \
141 #define STRING_DEL(context,string) \ argument
145 #define STRING_EXTEND(context,string) \ argument
150 ((context)->error = YAML_MEMORY_ERROR, \
153 #define CLEAR(context,string) \ argument
157 #define JOIN(context,string_a,string_b) \ argument
[all …]
/petsc/systems/Apple/iOS/examples/testopengl/Classes/
H A DiphoneViewController.m39 EAGLContext *context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
41 if (!context) {
42 NSLog(@"Failed to create ES context");
44 NSLog(@"Created ES context");
46 glkView.context = context;
47 [EAGLContext setCurrentContext:context];
91 EAGLContext* context = [EAGLContext currentContext];
93 [context presentRenderbuffer:GL_RENDERBUFFER];
/petsc/src/mat/impls/aij/mpi/superlu_dist/
H A Dsuperlu_dist.c153 PetscSuperLU_DIST *context = (PetscSuperLU_DIST *)attr_val; in Petsc_Superlu_dist_keyval_DeleteFn() local
158 if (context->use3d) { in Petsc_Superlu_dist_keyval_DeleteFn()
159 …PetscStackCallExternalVoid("SuperLU_DIST:superlu_gridexit3d", superlu_gridexit3d(&context->grid3d)… in Petsc_Superlu_dist_keyval_DeleteFn()
162 PetscStackCallExternalVoid("SuperLU_DIST:superlu_gridexit", superlu_gridexit(&context->grid)); in Petsc_Superlu_dist_keyval_DeleteFn()
163 PetscCallMPIReturnMPI(MPI_Comm_free(&context->comm)); in Petsc_Superlu_dist_keyval_DeleteFn()
164 PetscCallReturnMPI(PetscFree(context)); in Petsc_Superlu_dist_keyval_DeleteFn()
255 PetscSuperLU_DIST *context; in MatDestroy_SuperLU_DIST() local
260 PetscCallMPI(MPI_Comm_get_attr(comm, Petsc_Superlu_dist_keyval, &context, &iflg)); in MatDestroy_SuperLU_DIST()
261 if (iflg) context->busy = PETSC_FALSE; in MatDestroy_SuperLU_DIST()
596 PetscSuperLU_DIST *context = NULL; in MatLUFactorSymbolic_SuperLU_DIST() local
[all …]
/petsc/src/ksp/pc/impls/telescope/
H A Dtelescope_coarsedm.c293 void *context = NULL; in PCTelescopeMatNullSpaceCreate_CoarseDM() local
295 PetscCall(MatNullSpaceSetFunction(sub_nullspace, nullspace->remove, context)); in PCTelescopeMatNullSpaceCreate_CoarseDM()
302 …PetscCheck(context, PETSC_COMM_SELF, PETSC_ERR_SUP, "Propagation of user null-space removal method… in PCTelescopeMatNullSpaceCreate_CoarseDM()
303 PetscCall(MatNullSpaceSetFunction(sub_nullspace, nullspace->remove, context)); in PCTelescopeMatNullSpaceCreate_CoarseDM()
322 void *context = NULL; in PCTelescopeMatNullSpaceCreate_CoarseDM() local
324 PetscCall(MatNullSpaceSetFunction(sub_nearnullspace, nearnullspace->remove, context)); in PCTelescopeMatNullSpaceCreate_CoarseDM()
331 …PetscCheck(context, PETSC_COMM_SELF, PETSC_ERR_SUP, "Propagation of user near null-space removal m… in PCTelescopeMatNullSpaceCreate_CoarseDM()
332 PetscCall(MatNullSpaceSetFunction(sub_nearnullspace, nearnullspace->remove, context)); in PCTelescopeMatNullSpaceCreate_CoarseDM()
/petsc/doc/manualpages/MANSECHeaders/
H A DSNES8 codes by first extracting the `KSP` context from the `SNES` context via `SNESGetKSP()`
/petsc/include/petsc/private/
H A Dpetscscalapack.h52 BLAS_EXTERN void Cblacs_get(PetscBLASInt context, PetscBLASInt request, PetscBLASInt *value…
53 BLAS_EXTERN PetscBLASInt Cblacs_pnum(PetscBLASInt context, PetscBLASInt prow, PetscBLASInt pcol);
54 BLAS_EXTERN PetscBLASInt Cblacs_gridinit(PetscBLASInt *context, const char *order, PetscBLASInt np_…
55 BLAS_EXTERN void Cblacs_gridinfo(PetscBLASInt context, PetscBLASInt *np_row, PetscBLASInt *…
56 BLAS_EXTERN void Cblacs_gridexit(PetscBLASInt context);
/petsc/src/sys/objects/device/tests/output/
H A Dex6_root_device_context_stream_type-default_hip.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
H A Dex6_root_device_context_stream_type-null_host_no_device.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
H A Dex6_root_device_context_stream_type-null_hip.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
H A Dex6_root_device_context_stream_type-default_host_with_device.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
H A Dex6_root_device_context_stream_type-nonblocking_cuda.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
H A Dex6_root_device_context_stream_type-null_sycl.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
H A Dex6_root_device_context_stream_type-default_sycl.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
H A Dex6_root_device_context_stream_type-default_with_barrier_hip.out29 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process
36 PetscDeviceContext Object: null context 0 (null_context_0_) 1 MPI process

12345