| /petsc/src/dm/impls/plex/ |
| H A D | plexply.c | 24 char line[PETSC_MAX_PATH_LEN], ntype[16], itype[16], name[1024], vtype[16]; in DMPlexCreatePLYFromFile() local 83 snum = sscanf(line, "%s %s", ntype, name); in DMPlexCreatePLYFromFile() 85 PetscCall(PetscStrncmp(ntype, "float32", 16, &matchB)); in DMPlexCreatePLYFromFile() 89 PetscCall(PetscStrncmp(ntype, "int32", 16, &matchB)); in DMPlexCreatePLYFromFile() 93 PetscCall(PetscStrncmp(ntype, "uint8", 16, &matchB)); in DMPlexCreatePLYFromFile() 117 snum = sscanf(line, "property list %s %s %s", ntype, itype, name); in DMPlexCreatePLYFromFile() 119 PetscCall(PetscStrncmp(ntype, "uint8", 1024, &match)); in DMPlexCreatePLYFromFile()
|
| /petsc/src/vec/vec/utils/ |
| H A D | comb.c | 487 PetscErrorCode VecNormBegin(Vec x, NormType ntype, PetscReal *result) in VecNormBegin() argument 499 PetscCall(VecNorm(x, ntype, result)); in VecNormBegin() 504 …if (sr->numopsbegin >= sr->maxops || (sr->numopsbegin == sr->maxops - 1 && ntype == NORM_1_AND_2))… in VecNormBegin() 508 PetscUseTypeMethod(x, norm_local, ntype, lresult); in VecNormBegin() 510 if (ntype == NORM_2) lresult[0] = lresult[0] * lresult[0]; in VecNormBegin() 511 if (ntype == NORM_1_AND_2) lresult[1] = lresult[1] * lresult[1]; in VecNormBegin() 512 if (ntype == NORM_MAX) sr->reducetype[sr->numopsbegin] = PETSC_SR_REDUCE_MAX; in VecNormBegin() 515 if (ntype == NORM_1_AND_2) { in VecNormBegin() 539 PetscErrorCode VecNormEnd(Vec x, NormType ntype, PetscReal *result) in VecNormEnd() argument 553 …PetscCheck(sr->reducetype[sr->numopsend] == PETSC_SR_REDUCE_MAX || ntype != NORM_MAX, PETSC_COMM_S… in VecNormEnd() [all …]
|
| H A D | vinv.c | 115 PetscErrorCode VecStrideNorm(Vec v, PetscInt start, NormType ntype, PetscReal *nrm) in VecStrideNorm() argument 124 PetscValidLogicalCollectiveEnum(v, ntype, 3); in VecStrideNorm() 131 if (ntype == NORM_2) { in VecStrideNorm() 137 } else if (ntype == NORM_1) { in VecStrideNorm() 141 } else if (ntype == NORM_INFINITY) { in VecStrideNorm() 414 PetscErrorCode VecStrideNormAll(Vec v, NormType ntype, PetscReal nrm[]) in VecStrideNormAll() argument 424 PetscValidLogicalCollectiveEnum(v, ntype, 2); in VecStrideNormAll() 433 if (ntype == NORM_2) { in VecStrideNormAll() 443 } else if (ntype == NORM_1) { in VecStrideNormAll() 451 } else if (ntype == NORM_INFINITY) { in VecStrideNormAll()
|
| /petsc/src/mat/tests/ |
| H A D | ex237.c | 32 PetscInt nbs = 10, ntype = 10, nN = 8, m, M, trial = 5; in main() local 64 PetscCall(PetscOptionsGetStringArray(NULL, NULL, "-type", type, &ntype, &flg)); in main() 66 ntype = 1; in main() 127 for (PetscInt i = 0; i < ntype; ++i) { in main() 431 if (cuda && i != ntype - 1) { in main() 439 for (m = 0; m < ntype; ++m) PetscCall(PetscFree(type[m])); in main()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Vec.pyx | 2105 cdef PetscNormType ntype = PETSC_NORM_2 2106 if norm_type is not None: ntype = norm_type 2108 CHKERR(VecNorm(self.vec, ntype, rval)) 2109 if ntype != norm_1_2: return toReal(rval[0]) 2126 cdef PetscNormType ntype = PETSC_NORM_2 2127 if norm_type is not None: ntype = norm_type 2129 CHKERR(VecNormBegin(self.vec, ntype, dummy)) 2144 cdef PetscNormType ntype = PETSC_NORM_2 2145 if norm_type is not None: ntype = norm_type 2147 CHKERR(VecNormEnd(self.vec, ntype, rval)) [all …]
|
| H A D | Mat.pyx | 4220 cdef PetscNormType ntype = PETSC_NORM_FROBENIUS 4221 if norm_type is not None: ntype = norm_type 4223 CHKERR(MatNorm(self.mat, ntype, rval)) 4224 if ntype != norm_1_2: return toReal(rval[0])
|
| H A D | libpetsc4py.pyx | 1210 PetscNormType ntype, argument 1216 retval = norm(Mat_(mat), ntype)
|
| /petsc/src/ts/tutorials/ |
| H A D | ex14.c | 226 #define FieldSize(ntype) ((PetscInt)(sizeof(ntype) / sizeof(PetscScalar))) argument 227 #define FieldOffset(ntype, member) ((PetscInt)(offsetof(ntype, member) / sizeof(PetscScalar))) argument 228 #define FieldIndex(ntype, i, member) ((PetscInt)((i) * FieldSize(ntype) + FieldOffset(ntype, member… argument
|
| /petsc/src/mat/impls/scalapack/ |
| H A D | matscalapack.c | 909 const char *ntype; in MatNorm_ScaLAPACK() local 915 ntype = "1"; in MatNorm_ScaLAPACK() 919 ntype = "F"; in MatNorm_ScaLAPACK() 923 ntype = "I"; in MatNorm_ScaLAPACK() 930 *nrm = SCALAPACKlange_(ntype, &a->M, &a->N, a->loc, &one, &one, a->desc, work); in MatNorm_ScaLAPACK()
|
| /petsc/src/mat/impls/hypre/ |
| H A D | mhypre.c | 1260 PetscInt ntype = 4; local 1277 …"-matptap_hypre_outtype", "MatPtAP outtype", "MatPtAP outtype", outTypes, ntype, outTypes[type], &… 1281 …m_hypre_outtype", "MatProduct_PtAP outtype", "MatProduct_PtAP", outTypes, ntype, outTypes[type], &…
|