Searched refs:ncoords (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex18.c | 211 PetscInt ncoords; member 280 options->ncoords = 128; in ProcessOptions() 281 …sponding to vertices with given coordinates", "ex18.c", options->coords, &options->ncoords, NULL)); in ProcessOptions() 732 …ncoords % user->dim == 0, comm, PETSC_ERR_ARG_OUTOFRANGE, "length of coordinates array %" PetscInt… in CreateMesh() 1528 if (user.ncoords) { in main() 1531 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, user.ncoords, user.ncoords, user.coords, &coords)… in main()
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5.c | 1326 PetscScalar *coords, *ncoords; in DMPlexCoordinatesView_HDF5_XDMF_Private() local 1367 PetscCall(VecGetArray(newcoords, &ncoords)); in DMPlexCoordinatesView_HDF5_XDMF_Private() 1385 ncoords[coordSize++] = PetscSinReal(phi) * r; in DMPlexCoordinatesView_HDF5_XDMF_Private() 1386 ncoords[coordSize++] = -PetscCosReal(theta) * (R + r * PetscCosReal(phi)); in DMPlexCoordinatesView_HDF5_XDMF_Private() 1387 ncoords[coordSize++] = PetscSinReal(theta) * (R + r * PetscCosReal(phi)); in DMPlexCoordinatesView_HDF5_XDMF_Private() 1390 …ncoords[coordSize++] = -PetscCosReal(2.0 * PETSC_PI * PetscRealPart(coords[off + 0]) / L[0]) * (L[… in DMPlexCoordinatesView_HDF5_XDMF_Private() 1391 ncoords[coordSize++] = coords[off + 1]; in DMPlexCoordinatesView_HDF5_XDMF_Private() 1392 …ncoords[coordSize++] = PetscSinReal(2.0 * PETSC_PI * PetscRealPart(coords[off + 0]) / L[0]) * (L[0… in DMPlexCoordinatesView_HDF5_XDMF_Private() 1395 ncoords[coordSize++] = coords[off + 0]; in DMPlexCoordinatesView_HDF5_XDMF_Private() 1396 …ncoords[coordSize++] = PetscSinReal(2.0 * PETSC_PI * PetscRealPart(coords[off + 1]) / L[1]) * (L[1… in DMPlexCoordinatesView_HDF5_XDMF_Private() [all …]
|
| /petsc/src/dm/impls/plex/cgns/ |
| H A D | plexcgns2.c | 645 int ngrids, ncoords; in DMPlexCreateCGNS_Internal_Serial() local 651 PetscCallCGNSRead(cg_ncoords(cgid, B, z, &ncoords), *dm, 0); in DMPlexCreateCGNS_Internal_Serial() 652 …PetscCheck(ncoords == coordDim, PETSC_COMM_SELF, PETSC_ERR_LIB, "CGNS file must have a coordinate … in DMPlexCreateCGNS_Internal_Serial() 1743 int ngrids, ncoords; in DMPlexCreateCGNS_Internal_Parallel() local 1748 PetscCallCGNSRead(cg_ncoords(cgid, base, zone, &ncoords), *dm, 0); in DMPlexCreateCGNS_Internal_Parallel() 1749 …PetscCheck(ncoords == coordDim, PETSC_COMM_SELF, PETSC_ERR_LIB, "CGNS file must have a coordinate … in DMPlexCreateCGNS_Internal_Parallel()
|