Home
last modified time | relevance | path

Searched refs:point_coords (Results 1 – 8 of 8) sorted by relevance

/libCEED/examples/petsc/src/
H A Dswarmutils.c263 PetscScalar point_coords[num_points_per_cell * 3]; in DMSwarmInitalizePointLocations() local
276 point_coords[p * dim + 0] = points_1d[i]; in DMSwarmInitalizePointLocations()
277 point_coords[p * dim + 1] = points_1d[j]; in DMSwarmInitalizePointLocations()
278 point_coords[p * dim + 2] = points_1d[k]; in DMSwarmInitalizePointLocations()
282 …dm_swarm, num_points_per_cell_1d * num_points_per_cell_1d * num_points_per_cell_1d, point_coords)); in DMSwarmInitalizePointLocations()
295 PetscScalar *point_coords; in DMSwarmInitalizePointLocations() local
301 … PetscCall(DMSwarmGetField(dm_swarm, DMSwarmPICField_coor, NULL, NULL, (void **)&point_coords)); in DMSwarmInitalizePointLocations()
303point_coords[p * dim + 0] = -PetscCosReal((PetscReal)(p + 1) / (PetscReal)(num_points + 1) * PETSC… in DMSwarmInitalizePointLocations()
304 …if (dim > 1) point_coords[p * dim + 1] = -PetscSinReal((PetscReal)(p + 1) / (PetscReal)(num_points… in DMSwarmInitalizePointLocations()
305 …if (dim > 2) point_coords[p * dim + 2] = PetscSinReal((PetscReal)(p + 1) / (PetscReal)(num_points … in DMSwarmInitalizePointLocations()
[all …]
/libCEED/backends/ref/
H A Dceed-ref-operator.c1028 CeedVector point_coords = NULL; in CeedOperatorApplyAddAtPoints_Ref() local
1045 CeedCallBackend(CeedOperatorAtPointsGetPoints(op, &rstr_points, &point_coords)); in CeedOperatorApplyAddAtPoints_Ref()
1055 …emRestrictionApplyAtPointsInElement(rstr_points, e, CEED_NOTRANSPOSE, point_coords, impl->point_co… in CeedOperatorApplyAddAtPoints_Ref()
1080 CeedCallBackend(CeedVectorDestroy(&point_coords)); in CeedOperatorApplyAddAtPoints_Ref()
1094 CeedVector point_coords = NULL; in CeedOperatorLinearAssembleQFunctionAtPointsCore_Ref() local
1117 CeedCallBackend(CeedOperatorAtPointsGetPoints(op, &rstr_points, &point_coords)); in CeedOperatorLinearAssembleQFunctionAtPointsCore_Ref()
1209 …emRestrictionApplyAtPointsInElement(rstr_points, e, CEED_NOTRANSPOSE, point_coords, impl->point_co… in CeedOperatorLinearAssembleQFunctionAtPointsCore_Ref()
1306 CeedCallBackend(CeedVectorDestroy(&point_coords)); in CeedOperatorLinearAssembleQFunctionAtPointsCore_Ref()
1334 CeedVector point_coords = NULL, in_vec, out_vec; in CeedOperatorLinearAssembleAddDiagonalAtPoints_Ref() local
1361 CeedCallBackend(CeedOperatorAtPointsGetPoints(op, &rstr_points, &point_coords)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Ref()
[all …]
/libCEED/interface/
H A Dceed-operator.c1079 …ratorAtPointsSetPoints(CeedOperator op, CeedElemRestriction rstr_points, CeedVector point_coords) { in CeedOperatorAtPointsSetPoints() argument
1098 CeedCall(CeedVectorReferenceCopy(point_coords, &op->point_coords)); in CeedOperatorAtPointsSetPoints()
1130 …torAtPointsGetPoints(CeedOperator op, CeedElemRestriction *rstr_points, CeedVector *point_coords) { in CeedOperatorAtPointsGetPoints() argument
1141 if (point_coords) { in CeedOperatorAtPointsGetPoints()
1142 *point_coords = NULL; in CeedOperatorAtPointsGetPoints()
1143 CeedCall(CeedVectorReferenceCopy(op->point_coords, point_coords)); in CeedOperatorAtPointsGetPoints()
2477 CeedCall(CeedVectorDestroy(&(*op)->point_coords)); in CeedOperatorDestroy()
H A Dceed-preconditioning.c1033 CeedVector point_coords; in CeedOperatorMultigridLevelCreateSingle_Core() local
1037 CeedCall(CeedOperatorAtPointsGetPoints(op_fine, &rstr_points, &point_coords)); in CeedOperatorMultigridLevelCreateSingle_Core()
1038 CeedCall(CeedOperatorAtPointsSetPoints(*op_coarse, rstr_points, point_coords)); in CeedOperatorMultigridLevelCreateSingle_Core()
1039 CeedCall(CeedVectorDestroy(&point_coords)); in CeedOperatorMultigridLevelCreateSingle_Core()
/libCEED/backends/hip-ref/
H A Dceed-hip-ref-operator.c850 CeedVector point_coords = NULL; in CeedOperatorApplyAddAtPoints_Hip() local
853 CeedCallBackend(CeedOperatorAtPointsGetPoints(op, &rstr_points, &point_coords)); in CeedOperatorApplyAddAtPoints_Hip()
857 CeedCallBackend(CeedVectorGetState(point_coords, &state)); in CeedOperatorApplyAddAtPoints_Hip()
859 …CeedCallBackend(CeedElemRestrictionApply(rstr_points, CEED_NOTRANSPOSE, point_coords, impl->point_… in CeedOperatorApplyAddAtPoints_Hip()
862 CeedCallBackend(CeedVectorDestroy(&point_coords)); in CeedOperatorApplyAddAtPoints_Hip()
1862 CeedVector point_coords = NULL; in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip() local
1865 CeedCallBackend(CeedOperatorAtPointsGetPoints(op, &rstr_points, &point_coords)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip()
1869 CeedCallBackend(CeedVectorGetState(point_coords, &state)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip()
1871 …CeedCallBackend(CeedElemRestrictionApply(rstr_points, CEED_NOTRANSPOSE, point_coords, impl->point_… in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip()
1874 CeedCallBackend(CeedVectorDestroy(&point_coords)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip()
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-operator.c852 CeedVector point_coords = NULL; in CeedOperatorApplyAddAtPoints_Cuda() local
855 CeedCallBackend(CeedOperatorAtPointsGetPoints(op, &rstr_points, &point_coords)); in CeedOperatorApplyAddAtPoints_Cuda()
859 CeedCallBackend(CeedVectorGetState(point_coords, &state)); in CeedOperatorApplyAddAtPoints_Cuda()
861 …CeedCallBackend(CeedElemRestrictionApply(rstr_points, CEED_NOTRANSPOSE, point_coords, impl->point_… in CeedOperatorApplyAddAtPoints_Cuda()
864 CeedCallBackend(CeedVectorDestroy(&point_coords)); in CeedOperatorApplyAddAtPoints_Cuda()
1865 CeedVector point_coords = NULL; in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda() local
1868 CeedCallBackend(CeedOperatorAtPointsGetPoints(op, &rstr_points, &point_coords)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda()
1872 CeedCallBackend(CeedVectorGetState(point_coords, &state)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda()
1874 …CeedCallBackend(CeedElemRestrictionApply(rstr_points, CEED_NOTRANSPOSE, point_coords, impl->point_… in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda()
1877 CeedCallBackend(CeedVectorDestroy(&point_coords)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda()
/libCEED/include/
H A Dceed-impl.h395 CeedVector point_coords; member
/libCEED/include/ceed/
H A Dceed.h443 …eratorAtPointsSetPoints(CeedOperator op, CeedElemRestriction rstr_points, CeedVector point_coords);
444 …atorAtPointsGetPoints(CeedOperator op, CeedElemRestriction *rstr_points, CeedVector *point_coords);