Lines Matching refs:npoints
218 static PetscErrorCode PerturbMesh(DM *mesh, PetscScalar *coordVals, PetscInt npoints, PetscInt dim) in PerturbMesh() argument
232 …m; ++k) maxPert[k] = 0.025 * (maxCoords[k] - minCoords[k]) / (PetscPowReal(npoints, 1. / dim) - 1); in PerturbMesh()
234 for (i = 0; i < npoints; ++i) { in PerturbMesh()
250 static PetscErrorCode SkewMesh(DM *mesh, PetscScalar *coordVals, PetscInt npoints, PetscInt dim) in SkewMesh() argument
273 for (i = 0; i < npoints; ++i) { in SkewMesh()
289 PetscInt dim, npoints; in TransformMesh() local
296 PetscCall(VecGetLocalSize(coords, &npoints)); in TransformMesh()
298 npoints = npoints / dim; in TransformMesh()
302 PetscCall(PerturbMesh(mesh, coordVals, npoints, dim)); in TransformMesh()
305 PetscCall(SkewMesh(mesh, coordVals, npoints, dim)); in TransformMesh()
308 PetscCall(SkewMesh(mesh, coordVals, npoints, dim)); in TransformMesh()
309 PetscCall(PerturbMesh(mesh, coordVals, npoints, dim)); in TransformMesh()