Home
last modified time | relevance | path

Searched refs:op_error_ctx (Results 1 – 6 of 6) sorted by relevance

/libCEED/examples/petsc/src/
H A Dmatops.c25 OperatorApplyContext op_error_ctx) { in SetupErrorOperatorCtx() argument
27 op_error_ctx->comm = comm; in SetupErrorOperatorCtx()
28 op_error_ctx->dm = dm; in SetupErrorOperatorCtx()
29 op_error_ctx->X_loc = X_loc; in SetupErrorOperatorCtx()
30 PetscCall(VecDuplicate(X_loc, &op_error_ctx->Y_loc)); in SetupErrorOperatorCtx()
31 op_error_ctx->x_ceed = ceed_data->x_ceed; in SetupErrorOperatorCtx()
32 op_error_ctx->y_ceed = ceed_data->y_ceed; in SetupErrorOperatorCtx()
33 op_error_ctx->op = op_error; in SetupErrorOperatorCtx()
34 op_error_ctx->ceed = ceed; in SetupErrorOperatorCtx()
175 PetscErrorCode ComputeL2Error(Vec X, PetscScalar *l2_error, OperatorApplyContext op_error_ctx) { in ComputeL2Error() argument
[all …]
/libCEED/examples/petsc/include/
H A Dmatops.h19 OperatorApplyContext op_error_ctx);
26 PetscErrorCode ComputeL2Error(Vec X, PetscScalar *l2_error, OperatorApplyContext op_error_ctx);
/libCEED/examples/petsc/
H A Dbpssphere.c60 OperatorApplyContext op_apply_ctx, op_error_ctx; in main() local
145 PetscCall(PetscMalloc1(1, &op_error_ctx)); in main()
279 PetscCall(SetupErrorOperatorCtx(comm, dm, ceed, ceed_data, X_loc, op_error, op_error_ctx)); in main()
281 PetscCall(ComputeL2Error(X, &l2_error, op_error_ctx)); in main()
313 PetscCall(VecDestroy(&op_error_ctx->Y_loc)); in main()
316 PetscCall(PetscFree(op_error_ctx)); in main()
H A Dbpsswarm.c63 OperatorApplyContext op_apply_ctx, op_error_ctx; in main() local
230 PetscCall(PetscMalloc1(1, &op_error_ctx)); in main()
397 … PetscCall(SetupErrorOperatorCtx(comm, dm_mesh, ceed, ceed_data, X_loc, op_error, op_error_ctx)); in main()
399 PetscCall(ComputeL2Error(X, &l2_error, op_error_ctx)); in main()
431 PetscCall(VecDestroy(&op_error_ctx->Y_loc)); in main()
434 PetscCall(PetscFree(op_error_ctx)); in main()
H A Dbps.c61 OperatorApplyContext op_apply_ctx, op_error_ctx; in RunWithDM() local
103 PetscCall(PetscMalloc1(1, &op_error_ctx)); in RunWithDM()
266 … PetscCall(SetupErrorOperatorCtx(rp->comm, dm, ceed, ceed_data, X_loc, op_error, op_error_ctx)); in RunWithDM()
268 PetscCall(ComputeL2Error(X, &l2_error, op_error_ctx)); in RunWithDM()
303 PetscCall(VecDestroy(&op_error_ctx->Y_loc)); in RunWithDM()
306 PetscCall(PetscFree(op_error_ctx)); in RunWithDM()
H A Dmultigrid.c64 OperatorApplyContext *op_apply_ctx, op_error_ctx; in main() local
506 PetscCall(PetscMalloc1(1, &op_error_ctx)); in main()
507 …Ctx(comm, dm[fine_level], ceed, ceed_data[fine_level], X_loc[fine_level], op_error, op_error_ctx)); in main()
509 PetscCall(ComputeL2Error(X[fine_level], &l2_error, op_error_ctx)); in main()
555 PetscCall(VecDestroy(&op_error_ctx->Y_loc)); in main()
561 PetscCall(PetscFree(op_error_ctx)); in main()