Home
last modified time | relevance | path

Searched refs:newCoords (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/impls/plex/tests/
H A Dex8.c243 PetscScalar *coords = NULL, *origCoords, *newCoords; in CheckCell() local
252 PetscCall(PetscMalloc2(coordSize, &origCoords, coordSize, &newCoords)); in CheckCell()
274 for (c = 0; c < coordSize; ++c) newCoords[c] = origCoords[c]; in CheckCell()
374 newCoords[p * cdim + d] *= scale; in CheckCell()
375 newCoords[p * cdim + d] += trans[d]; in CheckCell()
380 …0, rot[d] = 0.0; e < cdim; ++e) rot[d] += R[d * cdim + e] * PetscRealPart(newCoords[p * cdim + e]); in CheckCell()
382 for (d = 0; d < cdim; ++d) newCoords[p * cdim + d] = rot[d]; in CheckCell()
385 PetscCall(ChangeCoordinates(dm, cdim, newCoords)); in CheckCell()
428 PetscCall(PetscFree2(origCoords, newCoords)); in CheckCell()
/petsc/src/dm/impls/plex/
H A Dplexegads.c3213 double newCoords[18]; in DMPlex_Surface_Grad() local
3223 PetscCall(EGlite_evaluate(newgeom, params, newCoords)); in DMPlex_Surface_Grad()
3225 PetscCall(EG_evaluate(newgeom, params, newCoords)); in DMPlex_Surface_Grad()
3229 PetscScalar dxdCx = (newCoords[0] - coords[0]) / deltaCoord; in DMPlex_Surface_Grad()
3230 PetscScalar dxdCy = (newCoords[1] - coords[1]) / deltaCoord; in DMPlex_Surface_Grad()
3231 PetscScalar dxdCz = (newCoords[2] - coords[2]) / deltaCoord; in DMPlex_Surface_Grad()
4191 double newCoords[18]; in DMPlexGeomDataAndGrads() local
4198 if (islite) PetscCall(EGlite_evaluate(newgeom, params, newCoords)); in DMPlexGeomDataAndGrads()
4199 else PetscCall(EG_evaluate(newgeom, params, newCoords)); in DMPlexGeomDataAndGrads()
4256 PetscScalar dxdCx = (newCoords[0] - coords[0]) / deltaCoord; in DMPlexGeomDataAndGrads()
[all …]
H A Dplexsubmesh.c632 PetscScalar *coords, *newCoords; in DMPlexShiftCoordinates_Internal() local
677 PetscCall(VecGetArray(newCoordinates, &newCoords)); in DMPlexShiftCoordinates_Internal()
685 for (d = 0; d < dof; ++d) newCoords[noff + d] = coords[off + d]; in DMPlexShiftCoordinates_Internal()
694 for (d = 0; d < dof; ++d) newCoords[noff + d] = coords[off + d]; in DMPlexShiftCoordinates_Internal()
697 PetscCall(VecRestoreArray(newCoordinates, &newCoords)); in DMPlexShiftCoordinates_Internal()
/petsc/src/dm/dt/dualspace/impls/lagrange/
H A Ddspacelagrange.c560 PetscScalar *newCoords = NULL; in PetscLagNodeIndicesPushForward() local
610 PetscCall(PetscMalloc1(dim * nSubVert, &newCoords)); in PetscLagNodeIndicesPushForward()
614 …for (d = 0; d < dim; d++) newCoords[(closure2[2 * (c + v)] - vStart) * dim + d] = oldCoords[closur… in PetscLagNodeIndicesPushForward()
618 PetscCall(VecPlaceArray(coordVec, newCoords)); in PetscLagNodeIndicesPushForward()
623 PetscCall(PetscFree(newCoords)); in PetscLagNodeIndicesPushForward()