| /petsc/src/ksp/ksp/tests/ |
| H A D | ex10.c | 197 PetscReal xyz[20][3]; /* (x,y,z) coordinates of nodes */ variable 222 xyz[0][0] = x; in Elastic20Stiff() 223 xyz[0][1] = y; in Elastic20Stiff() 224 xyz[0][2] = z; in Elastic20Stiff() 225 xyz[1][0] = x + dx; in Elastic20Stiff() 226 xyz[1][1] = y; in Elastic20Stiff() 227 xyz[1][2] = z; in Elastic20Stiff() 228 xyz[2][0] = x + 2. * dx; in Elastic20Stiff() 229 xyz[2][1] = y; in Elastic20Stiff() 230 xyz[2][2] = z; in Elastic20Stiff() [all …]
|
| /petsc/src/dm/tests/ |
| H A D | ex50.c | 8 static PetscErrorCode MapPoint(PetscScalar xyz[], PetscScalar mxyz[]) in MapPoint() argument 12 x = xyz[0]; in MapPoint() 13 y = xyz[1]; in MapPoint() 14 z = xyz[2]; in MapPoint() 106 PetscScalar xyz[3]; in test_3d() local 108 xyz[2] = nodes[pk]; in test_3d() 110 xyz[1] = nodes[pj]; in test_3d() 112 xyz[0] = nodes[pi]; in test_3d() 113 PetscCall(MapPoint(xyz, cptr)); in test_3d()
|
| /petsc/src/mat/tests/ |
| H A D | ex152.c | 32 PetscReal *xyz; in main() local 82 PetscCall(PetscMalloc3(ni * ndims, &xyz, ni, &part, size, &tpwgts)); in main() 85 red = fread(xyz, sizeof(PetscReal), ndims * ni, fp); in main() 87 for (PetscInt i = 0; i < ni * ndims; i++) sxyz[i] = (real_t)xyz[i]; in main() 110 PetscCall(PetscFree3(xyz, part, tpwgts)); in main()
|
| /petsc/src/sys/tests/output/ |
| H A D | ex47_3_include.out | 19 -seq2_str rst,uvw,xyz # (source: file) 37 -xxx_seq2_str rst,uvw,xyz # (source: file) 55 -xxx_xxx_seq2_str rst,uvw,xyz # (source: file)
|
| H A D | ex47_3_options.out | 19 -seq2_str rst,uvw,xyz # (source: file)
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex64.c | 217 PetscScalar *cval, *xyz; in main() local 232 xyz = NULL; in main() 234 PetscCall(DMPlexVecGetClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main() 238 for (j = 0; j < clSize / sdim; ++j) cval[offUA + i] += xyz[j * sdim + i]; in main() 242 PetscCall(DMPlexVecRestoreClosure(seqdmUA, coordSection, coord, p, &clSize, &xyz)); in main() 313 PetscScalar *cval, *xyz; in main() local 328 xyz = NULL; in main() 330 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main() 334 for (j = 0; j < clSize / sdim; ++j) cval[offUA + i] += xyz[j * sdim + i]; in main() 338 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main()
|
| H A D | ex26f90.F90 | 66 PetscScalar, dimension(:), pointer :: cval, xyz 360 PetscCallA(DMPlexVecGetClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr)) 361 closureSize = size(xyz) 364 cval(offUA + i) = cval(offUA + i) + xyz(j/sdim + i) 369 … PetscCallA(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr)) 450 …scCallA(DMPlexVecGetClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ierr)) 454 do c = 1, size(xyz), sdim 455 cval(3) = cval(3) + xyz(c) 457 cval(3) = cval(3)*sdim/size(xyz) 460 …llA(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ierr))
|
| H A D | ex26.c | 314 PetscScalar *cval, *xyz; in main() local 329 xyz = NULL; in main() 331 PetscCall(DMPlexVecGetClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main() 335 for (j = 0; j < clSize / sdim; ++j) cval[offUA + i] += xyz[j * sdim + i]; in main() 339 PetscCall(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, &clSize, &xyz)); in main() 421 PetscScalar *cval = NULL, *xyz = NULL; in main() local 429 PetscCall(DMPlexVecGetClosure(dmS, coordSection, coord, cellID[cell], &cdimCoord, &xyz)); in main() 433 for (c = 0; c < cdimCoord / sdim; c++) cval[2] += xyz[c * sdim]; in main() 438 PetscCall(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID[0], NULL, &xyz)); in main()
|
| H A D | ex62f90.F90 | 49 PetscScalar, dimension(:), pointer :: cval, xyz 344 PetscCallA(DMPlexVecGetClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr)) 345 closureSize = size(xyz) 348 cval(offUA + i) = cval(offUA + i) + xyz(j/sdim + i) 353 … PetscCallA(DMPlexVecRestoreClosure(dmUA, coordSection, coord, p, PETSC_NULL_INTEGER, xyz, ierr)) 434 …scCallA(DMPlexVecGetClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ierr)) 438 do c = 1, size(xyz), sdim 439 cval(3) = cval(3) + xyz(c) 441 cval(3) = cval(3)*sdim/size(xyz) 444 …llA(DMPlexVecRestoreClosure(dmS, coordSection, coord, cellID(cell), PETSC_NULL_INTEGER, xyz, ierr))
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMSwarm.pyx | 704 cdef ndarray xyz = iarray(coordinates, NPY_PETSC_REAL) 705 if PyArray_ISFORTRAN(xyz): xyz = PyArray_Copy(xyz) 706 if PyArray_NDIM(xyz) != 2: raise ValueError( 708 "coordinates.ndim=%d") % (PyArray_NDIM(xyz))) 709 cdef PetscInt cnpoints = <PetscInt> PyArray_DIM(xyz, 0) 712 cdef PetscReal *coords = <PetscReal*> PyArray_DATA(xyz) 755 cdef ndarray xyz = iarray(coordinates, NPY_PETSC_REAL) 756 if PyArray_ISFORTRAN(xyz): xyz = PyArray_Copy(xyz) 757 if PyArray_NDIM(xyz) != 2: raise ValueError( 759 "coordinates.ndim=%d") % (PyArray_NDIM(xyz))) [all …]
|
| H A D | PC.pyx | 753 cdef ndarray xyz = iarray(coordinates, NPY_PETSC_REAL) 754 if PyArray_ISFORTRAN(xyz): xyz = PyArray_Copy(xyz) 755 if PyArray_NDIM(xyz) != 2: raise ValueError( 757 "coordinates.ndim=%d") % (PyArray_NDIM(xyz))) 758 cdef PetscInt nvtx = <PetscInt> PyArray_DIM(xyz, 0) 759 cdef PetscInt ndim = <PetscInt> PyArray_DIM(xyz, 1) 760 cdef PetscReal *coords = <PetscReal*> PyArray_DATA(xyz) 1233 The xyz components of the Raviart-Thomas interpolation matrix, 1238 The xyz components of the Nedelec interpolation matrix,
|
| H A D | Mat.pyx | 1573 cdef ndarray xyz 1584 xyz = iarray(coordinates, NPY_PETSC_REAL) 1585 if PyArray_ISFORTRAN(xyz): xyz = PyArray_Copy(xyz) 1586 if PyArray_NDIM(xyz) != 2: raise ValueError( 1588 "coordinates.ndim=%d") % (PyArray_NDIM(xyz))) 1589 nvtx = <PetscInt> PyArray_DIM(xyz, 0) 1594 cdim = <PetscInt> PyArray_DIM(xyz, 1) 1595 coords = <PetscReal*> PyArray_DATA(xyz)
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexgmsh.c | 453 double *xyz; /* Coordinates */ member 462 PetscCall(PetscMalloc1(count * 3, &(*nodes)->xyz)); in GmshNodesCreate() 472 PetscCall(PetscFree((*nodes)->xyz)); in GmshNodesDestroy() 565 double *xyz = nodes->xyz + n * 3; in GmshReadNodes_v22() local 567 PetscCall(PetscViewerRead(viewer, xyz, 3, NULL, PETSC_DOUBLE)); in GmshReadNodes_v22() 569 if (byteSwap) PetscCall(PetscByteSwap(xyz, PETSC_DOUBLE, 3)); in GmshReadNodes_v22() 740 double *xyz = nodes->xyz + n * 3; in GmshReadNodes_v40() local 745 PetscCall(PetscMemcpy(xyz, cxyz, 3 * sizeof(double))); in GmshReadNodes_v40() 747 if (byteSwap) PetscCall(PetscByteSwap(xyz, PETSC_DOUBLE, 3)); in GmshReadNodes_v40() 753 double *xyz = nodes->xyz + n * 3; in GmshReadNodes_v40() local [all …]
|
| /petsc/src/snes/tutorials/ |
| H A D | ex12.c | 387 const PetscReal xyz = (x[0] - 0.5) * (x[1] - 0.5) * (x[2] - 0.5); in cross_u_3d() local 389 …*u = PetscSinReal(alpha * xyz) * (alpha * PetscAbsReal(xyz) < 2 * PETSC_PI ? (alpha * PetscAbsReal… in cross_u_3d() 396 const PetscReal xyz = (x[0] - 0.5) * (x[1] - 0.5) * (x[2] - 0.5); in f0_cross_u_3d() local 398 …f0[0] = PetscSinReal(alpha * xyz) * (alpha * PetscAbsReal(xyz) < 2 * PETSC_PI ? (alpha * PetscAbsR… in f0_cross_u_3d()
|
| /petsc/doc/changes/ |
| H A D | 31.md | 141 -da_refine_hierarchy\_[xyz] to allow semi-coarsening at some levels
|
| /petsc/src/dm/impls/plex/exodusii/ |
| H A D | plexexodusii2.c | 873 PetscScalar *xyz = NULL; in DMView_PlexExodusII() local 879 PetscCall(DMPlexVecGetClosure(cdm, NULL, coord, cells[0], &closureSize, &xyz)); in DMView_PlexExodusII() 908 PetscCall(DMPlexVecRestoreClosure(cdm, NULL, coord, cells[0], &closureSize, &xyz)); in DMView_PlexExodusII()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 206 …ping_pforest(p4est_geometry_t *geom, p4est_topidx_t which_tree, const double abc[3], double xyz[3]) in GeometryMapping_pforest() 220 for (i = 0; i < d; i++) xyz[i] = PetscXYZ[i]; in GeometryMapping_pforest()
|