Lines Matching refs:newcoords
1238 Vec coordinates, newcoords; in DMPlexCoordinatesView_HDF5_Legacy_Private() local
1246 PetscCall(VecCreate(PetscObjectComm((PetscObject)coordinates), &newcoords)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1247 PetscCall(PetscObjectSetName((PetscObject)newcoords, "vertices")); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1250 PetscCall(VecSetSizes(newcoords, m, M)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1252 PetscCall(VecSetBlockSize(newcoords, bs)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1253 PetscCall(VecSetType(newcoords, VECSTANDARD)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1254 PetscCall(VecCopy(coordinates, newcoords)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1255 PetscCall(VecScale(newcoords, lengthScale)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1259 PetscCall(VecView(newcoords, viewer)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1262 PetscCall(VecDestroy(&newcoords)); in DMPlexCoordinatesView_HDF5_Legacy_Private()
1269 Vec coords, newcoords; in DMPlexCoordinatesView_HDF5_Internal() local
1302 PetscCall(VecCreate(PetscObjectComm((PetscObject)coords), &newcoords)); in DMPlexCoordinatesView_HDF5_Internal()
1303 PetscCall(PetscObjectSetName((PetscObject)newcoords, coordinates_name)); in DMPlexCoordinatesView_HDF5_Internal()
1306 PetscCall(VecSetSizes(newcoords, m, M)); in DMPlexCoordinatesView_HDF5_Internal()
1308 PetscCall(VecSetBlockSize(newcoords, bs)); in DMPlexCoordinatesView_HDF5_Internal()
1309 PetscCall(VecSetType(newcoords, VECSTANDARD)); in DMPlexCoordinatesView_HDF5_Internal()
1310 PetscCall(VecCopy(coords, newcoords)); in DMPlexCoordinatesView_HDF5_Internal()
1312 PetscCall(VecScale(newcoords, lengthScale)); in DMPlexCoordinatesView_HDF5_Internal()
1314 PetscCall(DMPlexGlobalVectorView(dm, viewer, cdm, newcoords)); in DMPlexCoordinatesView_HDF5_Internal()
1316 PetscCall(VecDestroy(&newcoords)); in DMPlexCoordinatesView_HDF5_Internal()
1324 Vec coordinatesLocal, newcoords; in DMPlexCoordinatesView_HDF5_XDMF_Private() local
1348 PetscCall(VecCreate(PetscObjectComm((PetscObject)dm), &newcoords)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1362 if (embedded) PetscCall(VecSetBlockSize(newcoords, bs + 1)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1363 else PetscCall(VecSetBlockSize(newcoords, bs)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1364 PetscCall(VecSetSizes(newcoords, N, PETSC_DETERMINE)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1365 PetscCall(VecSetType(newcoords, VECSTANDARD)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1367 PetscCall(VecGetArray(newcoords, &ncoords)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1439 PetscCall(VecRestoreArray(newcoords, &ncoords)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1440 PetscCall(PetscObjectSetName((PetscObject)newcoords, "vertices")); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1441 PetscCall(VecScale(newcoords, lengthScale)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1446 PetscCall(VecView(newcoords, viewer)); in DMPlexCoordinatesView_HDF5_XDMF_Private()
1448 PetscCall(VecDestroy(&newcoords)); in DMPlexCoordinatesView_HDF5_XDMF_Private()