Home
last modified time | relevance | path

Searched refs:rnp (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ksp/ksp/impls/cg/pipecgrr/
H A Dpipecgrr.c24 …PetscReal dp = 0.0, nsi = 0.0, sqn = 0.0, Anorm = 0.0, rnp = 0.0, pnp = 0.0, snp = 0.0, unp = 0.… in KSPSolve_PIPECGRR() local
111 rnp = dp; in KSPSolve_PIPECGRR()
193 …errncr = PetscSqrtReal(Anorm * xnp + 2.0 * Anorm * PetscAbsScalar(alphap) * dpp + rnp + 2.0 * Pets… in KSPSolve_PIPECGRR()
221 if (i > 1 && errrprev <= (tol * rnp) && errr > (tol * dp)) { in KSPSolve_PIPECGRR()
/petsc/src/dm/impls/plex/
H A Dplexcreate.c7095 int rnum, rlen, rshtype, rnpart, rnp; in DMPlexCreateShapefile() local
7122 PetscCall(PetscViewerBinaryRead(viewer, &rnp, 1, &cnt, PETSC_INT32)); in DMPlexCreateShapefile()
7123 PetscCall(PetscByteSwap(&rnp, PETSC_INT32, 1)); in DMPlexCreateShapefile()
7125 PetscCall(PetscInfo(viewer, "Shapefile: record shape number of points %d\n", rnp)); in DMPlexCreateShapefile()
7132 PetscCall(PetscMalloc1(rnp * 2, &points)); in DMPlexCreateShapefile()
7133 PetscCall(PetscViewerBinaryRead(viewer, points, rnp * 2, &cnt, PETSC_DOUBLE)); in DMPlexCreateShapefile()
7134 PetscCall(PetscByteSwap(points, PETSC_DOUBLE, rnp * 2)); in DMPlexCreateShapefile()
7135 …PetscCheck(cnt == rnp * 2, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Unable to parse Shapefile file: … in DMPlexCreateShapefile()
7136 totlen += 8 * rnp * 2; in DMPlexCreateShapefile()
7140 Nv = rnp - vOff; in DMPlexCreateShapefile()