Home
last modified time | relevance | path

Searched refs:x_ceed (Results 1 – 20 of 20) sorted by relevance

/libCEED/examples/fluids/include/
H A Dpetsc-ceed-utils.h129 static inline PetscErrorCode VecPetscToCeed(Vec X_petsc, PetscMemType *mem_type, CeedVector x_ceed)… in VecPetscToCeed() argument
134 …PetscCallCeed(CeedVectorReturnCeed(x_ceed), CeedVectorSetArray(x_ceed, MemTypePetscToCeed(*mem_typ… in VecPetscToCeed()
149 static inline PetscErrorCode VecCeedToPetsc(CeedVector x_ceed, PetscMemType mem_type, Vec X_petsc) { in VecCeedToPetsc() argument
153 …PetscCallCeed(CeedVectorReturnCeed(x_ceed), CeedVectorTakeArray(x_ceed, MemTypePetscToCeed(mem_typ… in VecCeedToPetsc()
169 … inline PetscErrorCode VecReadPetscToCeed(Vec X_petsc, PetscMemType *mem_type, CeedVector x_ceed) { in VecReadPetscToCeed() argument
174 …PetscCallCeed(CeedVectorReturnCeed(x_ceed), CeedVectorSetArray(x_ceed, MemTypePetscToCeed(*mem_typ… in VecReadPetscToCeed()
189 static inline PetscErrorCode VecReadCeedToPetsc(CeedVector x_ceed, PetscMemType mem_type, Vec X_pet… in VecReadCeedToPetsc() argument
193 …PetscCallCeed(CeedVectorReturnCeed(x_ceed), CeedVectorTakeArray(x_ceed, MemTypePetscToCeed(mem_typ… in VecReadCeedToPetsc()
206 static inline PetscErrorCode VecCopyPetscToCeed(Vec X_petsc, CeedVector x_ceed) { in VecCopyPetscToCeed() argument
214 PetscCall(CeedVectorGetCeed(x_ceed, &ceed)); in VecCopyPetscToCeed()
[all …]
H A Dpetsc_ops.h17 CeedVector x_ceed, y_ceed; member
22 …extCreate(DM dm_x, DM dm_y, Ceed ceed, CeedOperator op_apply, CeedVector x_ceed, CeedVector y_ceed…
/libCEED/examples/fluids/src/
H A Dpetsc_ops.c59 …extCreate(DM dm_x, DM dm_y, Ceed ceed, CeedOperator op_apply, CeedVector x_ceed, CeedVector y_ceed… in OperatorApplyContextCreate() argument
88 if (x_ceed && x_ceed != CEED_VECTOR_NONE) { in OperatorApplyContextCreate()
89 PetscCallCeed(ceed, CeedVectorGetLength(x_ceed, &x_ceed_size)); in OperatorApplyContextCreate()
122 if (x_ceed) PetscCallCeed(ceed, CeedVectorReferenceCopy(x_ceed, &(*ctx)->x_ceed)); in OperatorApplyContextCreate()
123 else PetscCallCeed(ceed, CeedVectorCreate(ceed, x_size, &(*ctx)->x_ceed)); in OperatorApplyContextCreate()
150 PetscCallCeed(ceed, CeedVectorDestroy(&ctx->x_ceed)); in OperatorApplyContextDestroy()
216 PetscErrorCode ApplyCeedOperator_Core(Vec X, Vec X_loc, CeedVector x_ceed, CeedVector y_ceed, Vec Y… in ApplyCeedOperator_Core() argument
223 if (X_loc) PetscCall(VecReadPetscToCeed(X_loc, &x_mem_type, x_ceed)); in ApplyCeedOperator_Core()
229 …if (use_apply_add) PetscCallCeed(ceed, CeedOperatorApplyAdd(ctx->op, x_ceed, y_ceed, CEED_REQUEST_… in ApplyCeedOperator_Core()
230 else PetscCallCeed(ceed, CeedOperatorApply(ctx->op, x_ceed, y_ceed, CEED_REQUEST_IMMEDIATE)); in ApplyCeedOperator_Core()
[all …]
H A Dturb_spanstats.c440 CeedVector x_ceed, y_ceed; in SetupMMSErrorChecking() local
463 …PetscCallCeed(ceed, CeedElemRestrictionCreateVector(stats_data->elem_restr_parent_stats, &x_ceed, … in SetupMMSErrorChecking()
465 …textCreate(user->spanstats.dm, user->spanstats.dm, user->ceed, op_error, x_ceed, y_ceed, NULL, NUL… in SetupMMSErrorChecking()
469 PetscCallCeed(ceed, CeedVectorDestroy(&x_ceed)); in SetupMMSErrorChecking()
/libCEED/examples/solids/src/
H A Dmatops.c36 CeedVectorSetArray(user->x_ceed, MemTypeP2C(x_mem_type), CEED_USE_POINTER, x); in ApplyLocalCeedOp()
40 CeedOperatorApply(user->op, user->x_ceed, user->y_ceed, CEED_REQUEST_IMMEDIATE); in ApplyLocalCeedOp()
43 CeedVectorTakeArray(user->x_ceed, MemTypeP2C(x_mem_type), NULL); in ApplyLocalCeedOp()
198 CeedVectorSetArray(user->x_ceed, MemTypeP2C(x_mem_type), CEED_USE_POINTER, x); in GetDiag_Ceed()
201 CeedOperatorLinearAssembleDiagonal(user->op, user->x_ceed, CEED_REQUEST_IMMEDIATE); in GetDiag_Ceed()
207 CeedVectorTakeArray(user->x_ceed, MemTypeP2C(x_mem_type), NULL); in GetDiag_Ceed()
233 CeedVectorSetArray(user->x_ceed, MemTypeP2C(x_mem_type), CEED_USE_POINTER, x); in ComputeStrainEnergy()
245 CeedOperatorApply(op_energy, user->x_ceed, e_loc, CEED_REQUEST_IMMEDIATE); in ComputeStrainEnergy()
248 CeedVectorTakeArray(user->x_ceed, MemTypeP2C(x_mem_type), NULL); in ComputeStrainEnergy()
H A Dmisc.c34 jacobian_ctx->x_ceed = ceed_data->x_ceed; in SetupJacobianCtx()
63 prolong_restr_ctx->ceed_vec_c = ceed_data_c->x_ceed; in SetupProlongRestrictCtx()
64 prolong_restr_ctx->ceed_vec_f = ceed_data_f->x_ceed; in SetupProlongRestrictCtx()
176 CeedVectorSetArray(user->x_ceed, MemTypeP2C(x_mem_type), CEED_USE_POINTER, x); in ViewDiagnosticQuantities()
180 CeedOperatorApply(user->op, user->x_ceed, y_ceed, CEED_REQUEST_IMMEDIATE); in ViewDiagnosticQuantities()
183 CeedVectorTakeArray(user->x_ceed, MemTypeP2C(x_mem_type), NULL); in ViewDiagnosticQuantities()
H A Dsetup-libceed.c41 CeedVectorDestroy(&data->x_ceed); in CeedDataDestroy()
203 CeedVectorCreate(ceed, U_loc_size, &data[fine_level]->x_ceed); in SetupLibceedFineLevel()
522 CeedVectorCreate(ceed, U_loc_size, &data[level]->x_ceed); in SetupLibceedLevel()
/libCEED/examples/petsc/src/
H A Dmatops.c14 op_apply_ctx->x_ceed = ceed_data->x_ceed; in SetupApplyOperatorCtx()
31 op_error_ctx->x_ceed = ceed_data->x_ceed; in SetupErrorOperatorCtx()
74 PetscCall(VecReadP2C(op_apply_ctx->X_loc, &x_mem_type, op_apply_ctx->x_ceed)); in ApplyLocal_Ceed()
78 …CeedOperatorApply(op_apply_ctx->op, op_apply_ctx->x_ceed, op_apply_ctx->y_ceed, CEED_REQUEST_IMMED… in ApplyLocal_Ceed()
81 PetscCall(VecReadC2P(op_apply_ctx->x_ceed, x_mem_type, op_apply_ctx->X_loc)); in ApplyLocal_Ceed()
H A Dlibceedsetup.c21 CeedVectorDestroy(&data->x_ceed); in CeedDataDestroy()
52 CeedVector x_coord, q_data, x_ceed, y_ceed; in SetupLibceedByDegree() local
86 CeedVectorCreate(ceed, xl_size, &x_ceed); in SetupLibceedByDegree()
195 data->x_ceed = x_ceed; in SetupLibceedByDegree()
224 PetscCall(VecReadP2C(fine_mult, &m_mem_type, data[level]->x_ceed)); in CeedLevelTransferSetup()
226 …CeedOperatorMultigridLevelCreate(data[level]->op_apply, data[level]->x_ceed, data[level - 1]->elem… in CeedLevelTransferSetup()
230 PetscCall(VecReadC2P(data[level]->x_ceed, m_mem_type, fine_mult)); in CeedLevelTransferSetup()
H A Dpetscutils.c18 PetscErrorCode VecP2C(Vec X_petsc, PetscMemType *mem_type, CeedVector x_ceed) { in VecP2C() argument
23 CeedVectorSetArray(x_ceed, MemTypeP2C(*mem_type), CEED_USE_POINTER, x); in VecP2C()
27 PetscErrorCode VecC2P(CeedVector x_ceed, PetscMemType mem_type, Vec X_petsc) { in VecC2P() argument
31 CeedVectorTakeArray(x_ceed, MemTypeP2C(mem_type), &x); in VecC2P()
36 PetscErrorCode VecReadP2C(Vec X_petsc, PetscMemType *mem_type, CeedVector x_ceed) { in VecReadP2C() argument
41 CeedVectorSetArray(x_ceed, MemTypeP2C(*mem_type), CEED_USE_POINTER, x); in VecReadP2C()
45 PetscErrorCode VecReadC2P(CeedVector x_ceed, PetscMemType mem_type, Vec X_petsc) { in VecReadC2P() argument
49 CeedVectorTakeArray(x_ceed, MemTypeP2C(mem_type), &x); in VecReadC2P()
H A Dswarmutils.c235 PetscErrorCode DMSwarmPICFieldP2C(DM dm_swarm, const char *field, CeedVector x_ceed) { in DMSwarmPICFieldP2C() argument
240 CeedVectorSetArray(x_ceed, CEED_MEM_HOST, CEED_USE_POINTER, (CeedScalar *)x); in DMSwarmPICFieldP2C()
244 PetscErrorCode DMSwarmPICFieldC2P(DM dm_swarm, const char *field, CeedVector x_ceed) { in DMSwarmPICFieldC2P() argument
248 CeedVectorTakeArray(x_ceed, CEED_MEM_HOST, (CeedScalar **)&x); in DMSwarmPICFieldC2P()
614 CeedElemRestrictionCreateVector(elem_restr_u_mesh, &data->x_ceed, NULL); in SetupProblemSwarm()
/libCEED/examples/petsc/include/
H A Dpetscutils.h18 PetscErrorCode VecP2C(Vec X_petsc, PetscMemType *mem_type, CeedVector x_ceed);
19 PetscErrorCode VecC2P(CeedVector x_ceed, PetscMemType mem_type, Vec X_petsc);
20 PetscErrorCode VecReadP2C(Vec X_petsc, PetscMemType *mem_type, CeedVector x_ceed);
21 PetscErrorCode VecReadC2P(CeedVector x_ceed, PetscMemType mem_type, Vec X_petsc);
H A Dswarmutils.h36 PetscErrorCode DMSwarmPICFieldP2C(DM dm_swarm, const char *field, CeedVector x_ceed);
37 PetscErrorCode DMSwarmPICFieldC2P(DM dm_swarm, const char *field, CeedVector x_ceed);
H A Dstructs.h25 CeedVector x_ceed, y_ceed; member
53 CeedVector q_data, x_ceed, y_ceed; member
/libCEED/examples/solids/include/
H A Dstructs.h87 CeedVector x_ceed, y_ceed; member
127 …CeedVector geo_data, geo_data_diagnostic, x_ceed, y_ceed, true_soln, stored_fields[SOLIDS_MAX_N… member
/libCEED/examples/petsc/
H A Dbpsraw.c117 CeedVector x_ceed, y_ceed; member
239 CeedVectorSetArray(op_apply_ctx->x_ceed, MemTypeP2C(x_mem_type), CEED_USE_POINTER, x); in MatMult_Mass()
243 …CeedOperatorApply(op_apply_ctx->op, op_apply_ctx->x_ceed, op_apply_ctx->y_ceed, CEED_REQUEST_IMMED… in MatMult_Mass()
246 CeedVectorTakeArray(op_apply_ctx->x_ceed, MemTypeP2C(x_mem_type), NULL); in MatMult_Mass()
276 CeedVectorSetArray(op_apply_ctx->x_ceed, MemTypeP2C(x_mem_type), CEED_USE_POINTER, x); in MatMult_Diff()
280 …CeedOperatorApply(op_apply_ctx->op, op_apply_ctx->x_ceed, op_apply_ctx->y_ceed, CEED_REQUEST_IMMED… in MatMult_Diff()
283 CeedVectorTakeArray(op_apply_ctx->x_ceed, MemTypeP2C(x_mem_type), NULL); in MatMult_Diff()
314 CeedVectorSetArray(op_apply_ctx->x_ceed, MemTypeP2C(mem_type), CEED_USE_POINTER, x); in ComputeErrorMax()
317 CeedOperatorApply(op_error, op_apply_ctx->x_ceed, collocated_error, CEED_REQUEST_IMMEDIATE); in ComputeErrorMax()
320 CeedVectorTakeArray(op_apply_ctx->x_ceed, MemTypeP2C(mem_type), NULL); in ComputeErrorMax()
[all …]
H A Darea.c181 CeedVectorSetValue(ceed_data->x_ceed, 1.0); in main()
184 …CeedOperatorApply(ceed_data->op_apply, ceed_data->x_ceed, ceed_data->y_ceed, CEED_REQUEST_IMMEDIAT… in main()
H A Dmultigrid.c300 PetscCall(VecP2C(X_loc[i], &mem_type, ceed_data[i]->x_ceed)); in main()
303 CeedElemRestrictionGetMultiplicity(ceed_data[i]->elem_restr_u, ceed_data[i]->x_ceed); in main()
304 CeedVectorSyncArray(ceed_data[i]->x_ceed, CEED_MEM_HOST); in main()
307 PetscCall(VecC2P(ceed_data[i]->x_ceed, mem_type, X_loc[i])); in main()
339 pr_restr_ctx[i]->ceed_vec_c = ceed_data[i - 1]->x_ceed; in main()
/libCEED/examples/solids/
H A Delasticity.c267 …CeedVectorSetArray(ceed_data[level + 1]->x_ceed, MemTypeP2C(m_mem_type), CEED_USE_POINTER, (CeedSc… in main()
274 ceed_data[level + 1]->x_ceed, ceed_data)); in main()
277 CeedVectorTakeArray(ceed_data[level + 1]->x_ceed, MemTypeP2C(m_mem_type), (CeedScalar **)&m); in main()
/libCEED/examples/fluids/
H A Dnavierstokes.h180 CeedVector q_ceed, q_dot_ceed, g_ceed, x_ceed; member