Home
last modified time | relevance | path

Searched refs:rw (Results 1 – 11 of 11) sorted by relevance

/petsc/share/petsc/matlab/@PetscOpenFile/
H A DPetscOpenFile.m1 function O = PetscOpenFile(filename,rw)
3 % O = PetscOpenFile(filename,rw) - opens the binary file (generated by PETSc for reading) or for …
10 rw = 'r'; variable
12 S = struct('fd', fopen(filename,rw,'ieee-be'));
15 if rw == 'r'
/petsc/src/sys/classes/random/impls/curand/
H A Dcurand2.cu13 PetscReal rl, rw; member
20 rw = PetscRealPart(width); in complexscalelw()
24 …t> x) { return thrust::get<1>(x) % 2 ? thrust::get<0>(x) * iw + il : thrust::get<0>(x) * rw + rl; } in operator ()()
55 PetscReal rw = PetscRealPart(r->width); in PetscRandomCurandScale_Private() local
57 thrust::transform(pval, pval + n, pval, realscalelw(rl, rw)); in PetscRandomCurandScale_Private()
/petsc/src/mat/impls/sbaij/seq/cholmod/
H A Dsbaijcholmod.c179 PetscErrorCode VecWrapCholmod(Vec X, PetscInt rw, cholmod_dense *Y) in VecWrapCholmod() argument
186 switch (rw) { in VecWrapCholmod()
194 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Case %" PetscInt_FMT " not handled", rw); in VecWrapCholmod()
209 PetscErrorCode VecUnWrapCholmod(Vec X, PetscInt rw, cholmod_dense *Y) in VecUnWrapCholmod() argument
212 switch (rw) { in VecUnWrapCholmod()
220 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Case %" PetscInt_FMT " not handled", rw); in VecUnWrapCholmod()
226 PetscErrorCode MatDenseWrapCholmod(Mat X, PetscInt rw, cholmod_dense *Y) in MatDenseWrapCholmod() argument
233 switch (rw) { in MatDenseWrapCholmod()
241 SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Case %" PetscInt_FMT " not handled", rw); in MatDenseWrapCholmod()
257 PetscErrorCode MatDenseUnWrapCholmod(Mat X, PetscInt rw, cholmod_dense *Y) in MatDenseUnWrapCholmod() argument
[all …]
/petsc/src/vec/vec/impls/hypre/
H A Dvhyp.c85 static PetscErrorCode VecGetArrayForHYPRE(Vec v, int rw, HYPRE_MemoryLocation hmem, PetscScalar **p… in VecGetArrayForHYPRE() argument
97 switch (rw) { in VecGetArrayForHYPRE()
129 SETERRQ(comm, PETSC_ERR_SUP, "Unhandled case %d", rw); in VecGetArrayForHYPRE()
/petsc/src/ksp/ksp/utils/dm/
H A Ddmproject.c1014 PetscReal *x, *v, *w, *rw; in DMSwarmRemap_Colella_Internal() local
1068 PetscCall(DMSwarmGetField(*rsw, "w_q", NULL, NULL, (void **)&rw)); in DMSwarmRemap_Colella_Internal()
1073 for (PetscInt i = 0; i < Np; ++i) rw[i] = 0.; in DMSwarmRemap_Colella_Internal()
1119 rw[rp] += wp * Wx[0] * Wx[1] * Wv[0] * Wv[1]; in DMSwarmRemap_Colella_Internal()
1120 …tscInt_FMT "\n", (double)(wp * Wx[0] * Wx[1] * Wv[0] * Wv[1]), (double)PetscRealPart(rw[rp]), rp)); in DMSwarmRemap_Colella_Internal()
1134 PetscCall(DMSwarmRestoreField(*rsw, "w_q", NULL, NULL, (void **)&rw)); in DMSwarmRemap_Colella_Internal()
1174 Vec w, rw, rhs; in DMSwarmRemap_PFAK_Internal() local
1278 PetscCall(DMSwarmCreateGlobalVectorFromField(*rsw, fields[0], &rw)); in DMSwarmRemap_PFAK_Internal()
1279 PetscCall(KSPSolveTranspose(ksp, rhs, rw)); in DMSwarmRemap_PFAK_Internal()
1280 PetscCall(VecViewFromOptions(rw, NULL, "-remap_rw_view")); in DMSwarmRemap_PFAK_Internal()
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DVec.pyx720 return self.toDLPack('rw')
726 def toDLPack(self, mode: AccessModeSpec = 'rw') -> Any:
751 if mode is None: mode = 'rw'
752 if mode not in ['rw', 'r', 'w']:
753 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'")
1425 mode: AccessModeSpec = 'rw') -> Any: # FIXME What is the right return type?
1441 out of date and ``mode`` is ``"r"`` or ``"rw"``.
1459 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'")
1465 mode: AccessModeSpec = 'rw') -> None:
1493 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'")
[all …]
H A DMat.pyx5737 def getDenseColumnVec(self, i: int, mode: AccessModeSpec = 'rw') -> Vec:
5755 if mode is None: mode = 'rw'
5756 if mode not in ['rw', 'r', 'w']:
5757 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'")
5760 if mode == 'rw':
5769 def restoreDenseColumnVec(self, i: int, mode: AccessModeSpec = 'rw', Vec V=None) -> None:
5793 if mode == 'rw':
5985 return self.toDLPack('rw')
5991 def toDLPack(self, mode: AccessModeSpec = 'rw') -> Any:
5993 if mode is None: mode = 'rw'
[all …]
/petsc/src/ksp/pc/impls/tfs/
H A Dxxt.c469 PetscScalar rsum[4], rw[4]; in det_separators() local
507 PetscCall(PCTFS_grop_hc(rsum, rw, 2, op, level)); in det_separators()
567 PetscCall(PCTFS_grop_hc(rsum, rw, 4, op, edge)); in det_separators()
H A Dxyt.c579 PetscScalar rsum[4], rw[4]; in det_separators() local
620 PetscCall(PCTFS_grop_hc(rsum, rw, 2, op, level)); in det_separators()
/petsc/src/ts/impls/rosw/
H A Drosw.c1318 TS_RosW *rw = (TS_RosW *)ts->data; in TSRosWGetVecs() local
1323 else *Ydot = rw->Ydot; in TSRosWGetVecs()
1327 else *Zdot = rw->Zdot; in TSRosWGetVecs()
1331 else *Ystage = rw->Ystage; in TSRosWGetVecs()
1335 else *Zstage = rw->Zstage; in TSRosWGetVecs()
/petsc/include/
H A Dpetscsys.h1845 #define PetscPrefetchBlock(a, n, rw, t) \ argument
1848 for (; _p < _end; _p += PETSC_LEVEL1_DCACHE_LINESIZE) PETSC_Prefetch(_p, (rw), (t)); \