Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 194) sorted by relevance

12345678

/libCEED/interface/
H A Dceed-qfunctioncontext.c36 int CeedQFunctionContextGetFieldIndex(CeedQFunctionContext ctx, const char *field_name, CeedInt *fi… in CeedQFunctionContextGetFieldIndex() argument
38 for (CeedInt i = 0; i < ctx->num_fields; i++) { in CeedQFunctionContextGetFieldIndex()
39 if (!strcmp(ctx->field_labels[i]->name, field_name)) *field_index = i; in CeedQFunctionContextGetFieldIndex()
58 int CeedQFunctionContextRegisterGeneric(CeedQFunctionContext ctx, const char *field_name, size_t fi… in CeedQFunctionContextRegisterGeneric() argument
64 CeedCall(CeedQFunctionContextGetFieldIndex(ctx, field_name, &field_index)); in CeedQFunctionContextRegisterGeneric()
65 CeedCheck(field_index == -1, CeedQFunctionContextReturnCeed(ctx), CEED_ERROR_UNSUPPORTED, in CeedQFunctionContextRegisterGeneric()
69 if (ctx->num_fields == 0) { in CeedQFunctionContextRegisterGeneric()
70 CeedCall(CeedCalloc(1, &ctx->field_labels)); in CeedQFunctionContextRegisterGeneric()
71 ctx->max_fields = 1; in CeedQFunctionContextRegisterGeneric()
72 } else if (ctx->num_fields == ctx->max_fields) { in CeedQFunctionContextRegisterGeneric()
[all …]
H A Dceed-qfunction.c382 int CeedQFunctionGetContext(CeedQFunction qf, CeedQFunctionContext *ctx) { in CeedQFunctionGetContext() argument
383 *ctx = NULL; in CeedQFunctionGetContext()
384 if (qf->ctx) CeedCall(CeedQFunctionContextReferenceCopy(qf->ctx, ctx)); in CeedQFunctionGetContext()
402 CeedQFunctionContext ctx; in CeedQFunctionGetContextData() local
404 CeedCall(CeedQFunctionGetContext(qf, &ctx)); in CeedQFunctionGetContextData()
405 if (ctx) { in CeedQFunctionGetContextData()
408 CeedCall(CeedQFunctionContextGetData(ctx, mem_type, data)); in CeedQFunctionGetContextData()
410 CeedCall(CeedQFunctionContextGetDataRead(ctx, mem_type, data)); in CeedQFunctionGetContextData()
415 CeedCall(CeedQFunctionContextDestroy(&ctx)); in CeedQFunctionGetContextData()
431 CeedQFunctionContext ctx; in CeedQFunctionRestoreContextData() local
[all …]
/libCEED/examples/fluids/src/
H A Dmat-ceed.c65 MatCeedContext ctx; in MatCeedAssemblePointBlockDiagonalCOO() local
68 PetscCall(MatShellGetContext(mat_ceed, &ctx)); in MatCeedAssemblePointBlockDiagonalCOO()
74 for (PetscInt i = 0; i < ctx->num_mats_assembled_pbd; i++) { in MatCeedAssemblePointBlockDiagonalCOO()
75 if (ctx->mats_assembled_pbd[i] == mat_coo) index = i; in MatCeedAssemblePointBlockDiagonalCOO()
91 …PetscCallCeed(ctx->ceed, CeedOperatorLinearAssemblePointBlockDiagonalSymbolic(ctx->op_mult, &num_e… in MatCeedAssemblePointBlockDiagonalCOO()
98 …if (!ctx->coo_values_pbd) PetscCallCeed(ctx->ceed, CeedVectorCreate(ctx->ceed, num_entries, &ctx->… in MatCeedAssemblePointBlockDiagonalCOO()
99 … PetscCall(PetscRealloc(++ctx->num_mats_assembled_pbd * sizeof(Mat), &ctx->mats_assembled_pbd)); in MatCeedAssemblePointBlockDiagonalCOO()
100 ctx->mats_assembled_pbd[ctx->num_mats_assembled_pbd - 1] = mat_coo; in MatCeedAssemblePointBlockDiagonalCOO()
121 …PetscCallCeed(ctx->ceed, CeedOperatorLinearAssemblePointBlockDiagonal(ctx->op_mult, ctx->coo_value… in MatCeedAssemblePointBlockDiagonalCOO()
123 PetscCallCeed(ctx->ceed, CeedVectorGetArrayRead(ctx->coo_values_pbd, mem_type, &values)); in MatCeedAssemblePointBlockDiagonalCOO()
[all …]
H A Dpetsc_ops.c60 Vec Y_loc, OperatorApplyContext *ctx) { in OperatorApplyContextCreate() argument
108 PetscCall(PetscNew(ctx)); in OperatorApplyContextCreate()
112 (*ctx)->dm_x = dm_x; in OperatorApplyContextCreate()
114 (*ctx)->dm_y = dm_y; in OperatorApplyContextCreate()
117 (*ctx)->X_loc = X_loc; in OperatorApplyContextCreate()
119 (*ctx)->Y_loc = Y_loc; 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()
125 if (y_ceed) PetscCallCeed(ceed, CeedVectorReferenceCopy(y_ceed, &(*ctx)->y_ceed)); in OperatorApplyContextCreate()
126 else PetscCallCeed(ceed, CeedVectorCreate(ceed, y_size, &(*ctx)->y_ceed)); in OperatorApplyContextCreate()
[all …]
/libCEED/backends/hip-ref/
H A Dceed-hip-ref-qfunctioncontext.c20 static inline int CeedQFunctionContextSyncH2D_Hip(const CeedQFunctionContext ctx) { in CeedQFunctionContextSyncH2D_Hip() argument
25 CeedCallBackend(CeedQFunctionContextGetCeed(ctx, &ceed)); in CeedQFunctionContextSyncH2D_Hip()
26 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSyncH2D_Hip()
30 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSyncH2D_Hip()
47 static inline int CeedQFunctionContextSyncD2H_Hip(const CeedQFunctionContext ctx) { in CeedQFunctionContextSyncD2H_Hip() argument
52 CeedCallBackend(CeedQFunctionContextGetCeed(ctx, &ceed)); in CeedQFunctionContextSyncD2H_Hip()
53 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSyncD2H_Hip()
57 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSyncD2H_Hip()
74 static inline int CeedQFunctionContextSync_Hip(const CeedQFunctionContext ctx, CeedMemType mem_type… in CeedQFunctionContextSync_Hip() argument
77 return CeedQFunctionContextSyncD2H_Hip(ctx); in CeedQFunctionContextSync_Hip()
[all …]
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-qfunctioncontext.c20 static inline int CeedQFunctionContextSyncH2D_Cuda(const CeedQFunctionContext ctx) { in CeedQFunctionContextSyncH2D_Cuda() argument
25 CeedCallBackend(CeedQFunctionContextGetCeed(ctx, &ceed)); in CeedQFunctionContextSyncH2D_Cuda()
26 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSyncH2D_Cuda()
30 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSyncH2D_Cuda()
47 static inline int CeedQFunctionContextSyncD2H_Cuda(const CeedQFunctionContext ctx) { in CeedQFunctionContextSyncD2H_Cuda() argument
52 CeedCallBackend(CeedQFunctionContextGetCeed(ctx, &ceed)); in CeedQFunctionContextSyncD2H_Cuda()
53 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSyncD2H_Cuda()
57 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSyncD2H_Cuda()
75 static inline int CeedQFunctionContextSync_Cuda(const CeedQFunctionContext ctx, CeedMemType mem_typ… in CeedQFunctionContextSync_Cuda() argument
78 return CeedQFunctionContextSyncD2H_Cuda(ctx); in CeedQFunctionContextSync_Cuda()
[all …]
/libCEED/backends/ref/
H A Dceed-ref-qfunctioncontext.c18 static int CeedQFunctionContextHasValidData_Ref(CeedQFunctionContext ctx, bool *has_valid_data) { in CeedQFunctionContextHasValidData_Ref() argument
21 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextHasValidData_Ref()
29 static int CeedQFunctionContextHasBorrowedDataOfType_Ref(CeedQFunctionContext ctx, CeedMemType mem_… in CeedQFunctionContextHasBorrowedDataOfType_Ref() argument
32 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextHasBorrowedDataOfType_Ref()
33 …CeedCheck(mem_type == CEED_MEM_HOST, CeedQFunctionContextReturnCeed(ctx), CEED_ERROR_BACKEND, "Can… in CeedQFunctionContextHasBorrowedDataOfType_Ref()
41 static int CeedQFunctionContextSetData_Ref(CeedQFunctionContext ctx, CeedMemType mem_type, CeedCopy… in CeedQFunctionContextSetData_Ref() argument
45 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSetData_Ref()
46 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSetData_Ref()
48 …CeedCheck(mem_type == CEED_MEM_HOST, CeedQFunctionContextReturnCeed(ctx), CEED_ERROR_BACKEND, "Can… in CeedQFunctionContextSetData_Ref()
73 static int CeedQFunctionContextTakeData_Ref(CeedQFunctionContext ctx, CeedMemType mem_type, void *d… in CeedQFunctionContextTakeData_Ref() argument
[all …]
/libCEED/backends/memcheck/
H A Dceed-memcheck-qfunctioncontext.c19 static int CeedQFunctionContextHasValidData_Memcheck(CeedQFunctionContext ctx, bool *has_valid_data… in CeedQFunctionContextHasValidData_Memcheck() argument
22 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextHasValidData_Memcheck()
30 static int CeedQFunctionContextHasBorrowedDataOfType_Memcheck(CeedQFunctionContext ctx, CeedMemType… in CeedQFunctionContextHasBorrowedDataOfType_Memcheck() argument
33 …CeedCheck(mem_type == CEED_MEM_HOST, CeedQFunctionContextReturnCeed(ctx), CEED_ERROR_BACKEND, "Can… in CeedQFunctionContextHasBorrowedDataOfType_Memcheck()
35 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextHasBorrowedDataOfType_Memcheck()
43 static int CeedQFunctionContextSetData_Memcheck(CeedQFunctionContext ctx, CeedMemType mem_type, Cee… in CeedQFunctionContextSetData_Memcheck() argument
47 …CeedCheck(mem_type == CEED_MEM_HOST, CeedQFunctionContextReturnCeed(ctx), CEED_ERROR_BACKEND, "Can… in CeedQFunctionContextSetData_Memcheck()
49 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSetData_Memcheck()
50 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSetData_Memcheck()
94 static int CeedQFunctionContextSyncData_Memcheck(CeedQFunctionContext ctx, CeedMemType mem_type) { in CeedQFunctionContextSyncData_Memcheck() argument
[all …]
/libCEED/backends/sycl-ref/
H A Dceed-sycl-ref-qfunctioncontext.sycl.cpp19 static inline int CeedQFunctionContextSyncH2D_Sycl(const CeedQFunctionContext ctx) { in CeedQFunctionContextSyncH2D_Sycl() argument
25 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSyncH2D_Sycl()
26 CeedCallBackend(CeedQFunctionContextGetCeed(ctx, &ceed)); in CeedQFunctionContextSyncH2D_Sycl()
30 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSyncH2D_Sycl()
52 static inline int CeedQFunctionContextSyncD2H_Sycl(const CeedQFunctionContext ctx) { in CeedQFunctionContextSyncD2H_Sycl() argument
58 CeedCallBackend(CeedQFunctionContextGetBackendData(ctx, &impl)); in CeedQFunctionContextSyncD2H_Sycl()
59 CeedCallBackend(CeedQFunctionContextGetCeed(ctx, &ceed)); in CeedQFunctionContextSyncD2H_Sycl()
63 CeedCallBackend(CeedQFunctionContextGetContextSize(ctx, &ctx_size)); in CeedQFunctionContextSyncD2H_Sycl()
86 static inline int CeedQFunctionContextSync_Sycl(const CeedQFunctionContext ctx, CeedMemType mem_typ… in CeedQFunctionContextSync_Sycl() argument
89 return CeedQFunctionContextSyncD2H_Sycl(ctx); in CeedQFunctionContextSync_Sycl()
[all …]
/libCEED/tests/
H A Dt408-qfunction.c10 CeedQFunctionContext ctx; in main() local
15 CeedQFunctionContextCreate(ceed, &ctx); in main()
16 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_data); in main()
19 CeedQFunctionContextGetDataRead(ctx, CEED_MEM_HOST, &ctx_data_copy); in main()
25 CeedQFunctionContextRestoreDataRead(ctx, &ctx_data_copy); in main()
28 CeedQFunctionContextGetDataRead(ctx, CEED_MEM_HOST, &ctx_data_copy); in main()
29 CeedQFunctionContextGetData(ctx, CEED_MEM_HOST, &ctx_data_copy); in main()
31 CeedQFunctionContextRestoreData(ctx, &ctx_data_copy); in main()
32 CeedQFunctionContextRestoreDataRead(ctx, &ctx_data_copy); in main()
34 CeedQFunctionContextDestroy(&ctx); in main()
H A Dt404-qfunction.c10 CeedQFunctionContext ctx; in main() local
16 CeedQFunctionContextCreate(ceed, &ctx); in main()
17 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_USE_POINTER, sizeof(ctx_data), &ctx_data); in main()
20 CeedQFunctionContextGetData(ctx, CEED_MEM_HOST, &ctx_data_copy); in main()
22 CeedQFunctionContextRestoreData(ctx, &ctx_data_copy); in main()
26 CeedQFunctionContextTakeData(ctx, CEED_MEM_HOST, &ctx_data_copy); in main()
31 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_data); in main()
34 CeedQFunctionContextGetData(ctx, CEED_MEM_HOST, &ctx_data_copy); in main()
36 CeedQFunctionContextRestoreData(ctx, &ctx_data_copy); in main()
38 CeedQFunctionContextDestroy(&ctx); in main()
H A Dt407-qfunction.c18 CeedQFunctionContext ctx; in main() local
29 CeedQFunctionContextCreate(ceed, &ctx); in main()
30 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_USE_POINTER, sizeof(TestContext), &ctx_data); in main()
32 CeedQFunctionContextRegisterDouble(ctx, "time", offsetof(TestContext, time), 1, "current time"); in main()
33 …CeedQFunctionContextRegisterInt32(ctx, "count", offsetof(TestContext, count), 2, "some sort of cou… in main()
34 …CeedQFunctionContextRegisterBoolean(ctx, "is set", offsetof(TestContext, is_set), 1, "some boolean… in main()
38 CeedQFunctionContextGetAllFieldLabels(ctx, &field_labels, &num_fields); in main()
75 CeedQFunctionContextGetFieldLabel(ctx, "time", &time_label); in main()
78 CeedQFunctionContextSetDouble(ctx, time_label, &value_time); in main()
81 CeedQFunctionContextGetFieldLabel(ctx, "count", &count_label); in main()
[all …]
H A Dt409-qfunction.c15 CeedQFunctionContext ctx; in main() local
31 CeedQFunctionContextCreate(ceed, &ctx); in main()
32 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_data); in main()
33 CeedQFunctionSetContext(qf, ctx); in main()
57 CeedQFunctionContextGetDataRead(ctx, CEED_MEM_HOST, &ctx_data_new); in main()
63 CeedQFunctionContextRestoreDataRead(ctx, &ctx_data_new); in main()
72 CeedQFunctionContextGetData(ctx, CEED_MEM_HOST, &ctx_data_new); in main()
74 CeedQFunctionContextRestoreData(ctx, &ctx_data_new); in main()
88 CeedQFunctionContextDestroy(&ctx); in main()
H A Dt402-qfunction.c12 CeedQFunctionContext ctx; in main() local
28 CeedQFunctionContextCreate(ceed, &ctx); in main()
32 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctxData), &ctxData); in main()
33 CeedQFunctionContextRegisterDouble(ctx, "scale", 0, 5, "scaling values"); in main()
35 CeedQFunctionContextView(ctx, stdout); in main()
47 CeedQFunctionContextReferenceCopy(ctx, &ctx_copy); in main()
55 CeedQFunctionContextDestroy(&ctx); in main()
H A Dt403-qfunction.c12 CeedQFunctionContext ctx, ctx_2; in main() local
22 CeedQFunctionContextCreate(ceed, &ctx); in main()
25 CeedQFunctionContextReferenceCopy(ctx, &ctx_2); in main()
26 if (ctx != ctx_2) printf("Error copying CeedQFunctionContext reference\n"); in main()
30 CeedQFunctionContextDestroy(&ctx); in main()
H A Dt402-qfunction-f.f9013 integer ctx
46 call ceedqfunctioncontextcreate(ceed,ctx,err)
48 call ceedqfunctioncontextsetdata(ctx,ceed_mem_host,ceed_use_pointer,ctxsize,&
50 call ceedqfunctioncontextview(ctx,err)
54 call ceedqfunctioncontextsetnumviewtabs(ctx,1,err)
55 call ceedqfunctioncontextview(ctx,err)
/libCEED/examples/fluids/qfunctions/
H A Dmass.h26 CEED_QFUNCTION_HELPER int Mass_N(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *con… in Mass_N() argument
37 CEED_QFUNCTION(Mass_1)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) {… in Mass_1() argument
39 CEED_QFUNCTION(Mass_5)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) {… in Mass_5() argument
41 CEED_QFUNCTION(Mass_7)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) {… in Mass_7() argument
43 CEED_QFUNCTION(Mass_9)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) {… in Mass_9() argument
45 CEED_QFUNCTION(Mass_22)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) … in Mass_22() argument
H A Dbc_freestream.h22 CEED_QFUNCTION_HELPER int Freestream(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar … in Freestream() argument
24 const FreestreamContext context = (FreestreamContext)ctx; in Freestream()
63 CEED_QFUNCTION(Freestream_Conserv_HLL)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScala… in Freestream_Conserv_HLL() argument
64 return Freestream(ctx, Q, in, out, STATEVAR_CONSERVATIVE, RIEMANN_HLL); in Freestream_Conserv_HLL()
67 CEED_QFUNCTION(Freestream_Prim_HLL)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *… in Freestream_Prim_HLL() argument
68 return Freestream(ctx, Q, in, out, STATEVAR_PRIMITIVE, RIEMANN_HLL); in Freestream_Prim_HLL()
71 CEED_QFUNCTION(Freestream_Entropy_HLL)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScala… in Freestream_Entropy_HLL() argument
72 return Freestream(ctx, Q, in, out, STATEVAR_ENTROPY, RIEMANN_HLL); in Freestream_Entropy_HLL()
75 CEED_QFUNCTION(Freestream_Conserv_HLLC)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScal… in Freestream_Conserv_HLLC() argument
76 return Freestream(ctx, Q, in, out, STATEVAR_CONSERVATIVE, RIEMANN_HLLC); in Freestream_Conserv_HLLC()
[all …]
H A Dbc_slip.h15 CEED_QFUNCTION_HELPER int Slip(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const… in Slip() argument
16 const NewtonianIdealGasContext newt_ctx = (const NewtonianIdealGasContext)ctx; in Slip()
51 CEED_QFUNCTION(Slip_Conserv)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *… in Slip_Conserv() argument
52 return Slip(ctx, Q, in, out, STATEVAR_CONSERVATIVE); in Slip_Conserv()
55 CEED_QFUNCTION(Slip_Prim)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out… in Slip_Prim() argument
56 return Slip(ctx, Q, in, out, STATEVAR_PRIMITIVE); in Slip_Prim()
59 CEED_QFUNCTION(Slip_Entropy)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *… in Slip_Entropy() argument
60 return Slip(ctx, Q, in, out, STATEVAR_ENTROPY); in Slip_Entropy()
63 CEED_QFUNCTION_HELPER int Slip_Jacobian(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScal… in Slip_Jacobian() argument
70 const NewtonianIdealGasContext newt_ctx = (const NewtonianIdealGasContext)ctx; in Slip_Jacobian()
[all …]
H A Dvelocity_gradient_projection.h13 CEED_QFUNCTION_HELPER int VelocityGradientProjectionRHS(void *ctx, CeedInt Q, const CeedScalar *con… in VelocityGradientProjectionRHS() argument
20 NewtonianIdealGasContext context = (NewtonianIdealGasContext)ctx; in VelocityGradientProjectionRHS()
43 CEED_QFUNCTION(VelocityGradientProjectionRHS_Conserv)(void *ctx, CeedInt Q, const CeedScalar *const… in VelocityGradientProjectionRHS_Conserv() argument
44 return VelocityGradientProjectionRHS(ctx, Q, in, out, STATEVAR_CONSERVATIVE); in VelocityGradientProjectionRHS_Conserv()
47 CEED_QFUNCTION(VelocityGradientProjectionRHS_Prim)(void *ctx, CeedInt Q, const CeedScalar *const *i… in VelocityGradientProjectionRHS_Prim() argument
48 return VelocityGradientProjectionRHS(ctx, Q, in, out, STATEVAR_PRIMITIVE); in VelocityGradientProjectionRHS_Prim()
51 CEED_QFUNCTION(VelocityGradientProjectionRHS_Entropy)(void *ctx, CeedInt Q, const CeedScalar *const… in VelocityGradientProjectionRHS_Entropy() argument
52 return VelocityGradientProjectionRHS(ctx, Q, in, out, STATEVAR_ENTROPY); in VelocityGradientProjectionRHS_Entropy()
H A Dnewtonian.h34 CEED_QFUNCTION_HELPER int ICsNewtonianIG(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedSca… in ICsNewtonianIG() argument
37 const SetupContext context = (SetupContext)ctx; in ICsNewtonianIG()
48 CEED_QFUNCTION(ICsNewtonianIG_Conserv)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScala… in ICsNewtonianIG_Conserv() argument
49 return ICsNewtonianIG(ctx, Q, in, out, STATEVAR_CONSERVATIVE); in ICsNewtonianIG_Conserv()
52 CEED_QFUNCTION(ICsNewtonianIG_Prim)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *… in ICsNewtonianIG_Prim() argument
53 return ICsNewtonianIG(ctx, Q, in, out, STATEVAR_PRIMITIVE); in ICsNewtonianIG_Prim()
56 CEED_QFUNCTION(ICsNewtonianIG_Entropy)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScala… in ICsNewtonianIG_Entropy() argument
57 return ICsNewtonianIG(ctx, Q, in, out, STATEVAR_ENTROPY); in ICsNewtonianIG_Entropy()
60 CEED_QFUNCTION_HELPER void MassFunction_Newtonian(void *ctx, CeedInt Q, const CeedScalar *const *in… in MassFunction_Newtonian() argument
68 NewtonianIdealGasContext context = (NewtonianIdealGasContext)ctx; in MassFunction_Newtonian()
[all …]
H A Ddifferential_filter.h33 CEED_QFUNCTION_HELPER int DifferentialFilter_RHS(void *ctx, CeedInt Q, const CeedScalar *const *in,… in DifferentialFilter_RHS() argument
39 DifferentialFilterContext context = (DifferentialFilterContext)ctx; in DifferentialFilter_RHS()
62 CEED_QFUNCTION(DifferentialFilter_RHS_Conserv)(void *ctx, CeedInt Q, const CeedScalar *const *in, C… in DifferentialFilter_RHS_Conserv() argument
63 return DifferentialFilter_RHS(ctx, Q, in, out, STATEVAR_CONSERVATIVE); in DifferentialFilter_RHS_Conserv()
66 CEED_QFUNCTION(DifferentialFilter_RHS_Prim)(void *ctx, CeedInt Q, const CeedScalar *const *in, Ceed… in DifferentialFilter_RHS_Prim() argument
67 return DifferentialFilter_RHS(ctx, Q, in, out, STATEVAR_PRIMITIVE); in DifferentialFilter_RHS_Prim()
70 CEED_QFUNCTION(DifferentialFilter_RHS_Entropy)(void *ctx, CeedInt Q, const CeedScalar *const *in, C… in DifferentialFilter_RHS_Entropy() argument
71 return DifferentialFilter_RHS(ctx, Q, in, out, STATEVAR_ENTROPY); in DifferentialFilter_RHS_Entropy()
78 CEED_QFUNCTION_HELPER int DifferentialFilter_LHS_N(void *ctx, CeedInt Q, const CeedScalar *const *i… in DifferentialFilter_LHS_N() argument
87 DifferentialFilterContext context = (DifferentialFilterContext)ctx; in DifferentialFilter_LHS_N()
[all …]
/libCEED/gallery/identity/
H A Dceed-identity.c26 CeedQFunctionContext ctx; in CeedQFunctionInit_Identity() local
29 CeedCall(CeedQFunctionContextCreate(ceed, &ctx)); in CeedQFunctionInit_Identity()
30 …CeedCall(CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_… in CeedQFunctionInit_Identity()
31 …CeedCall(CeedQFunctionContextRegisterInt32(ctx, "size", offsetof(IdentityCtx, size), 1, "field siz… in CeedQFunctionInit_Identity()
32 CeedCall(CeedQFunctionSetContext(qf, ctx)); in CeedQFunctionInit_Identity()
33 CeedCall(CeedQFunctionContextDestroy(&ctx)); in CeedQFunctionInit_Identity()
/libCEED/examples/petsc/src/
H A Dswarmutils.c15 …rorCode DMSwarmCeedContextCreate(DM dm_swarm, const char *ceed_resource, DMSwarmCeedContext *ctx) { in DMSwarmCeedContextCreate() argument
23 PetscCall(PetscNew(ctx)); in DMSwarmCeedContextCreate()
27 CeedInit(ceed_resource, &(*ctx)->ceed); in DMSwarmCeedContextCreate()
32 PetscCall(CreateBasisFromPlex((*ctx)->ceed, dm_mesh, NULL, 0, 0, 0, bp_data, &basis_u)); in DMSwarmCeedContextCreate()
33 PetscCall(CreateBasisFromPlex((*ctx)->ceed, dm_coord, NULL, 0, 0, 0, bp_data, &basis_x)); in DMSwarmCeedContextCreate()
34 PetscCall(CreateRestrictionFromPlex((*ctx)->ceed, dm_mesh, 0, NULL, 0, &elem_restr_u_mesh)); in DMSwarmCeedContextCreate()
35 PetscCall(CreateRestrictionFromPlex((*ctx)->ceed, dm_coord, 0, NULL, 0, &elem_restr_x_mesh)); in DMSwarmCeedContextCreate()
38 CeedElemRestrictionCreateVector(elem_restr_u_mesh, &(*ctx)->u_mesh, NULL); in DMSwarmCeedContextCreate()
39 CeedElemRestrictionCreateVector(elem_restr_u_mesh, &(*ctx)->v_mesh, NULL); in DMSwarmCeedContextCreate()
63 …CeedElemRestrictionCreateAtPoints((*ctx)->ceed, num_elem, num_points, num_comp, num_points * num_c… in DMSwarmCeedContextCreate()
[all …]
/libCEED/python/tests/
H A Dtest-qfunctions.h11 CEED_QFUNCTION(setup_mass)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *con… in setup_mass() argument
28 CEED_QFUNCTION(setup_mass_2d)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *… in setup_mass_2d() argument
45 CEED_QFUNCTION(apply_mass)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar *con… in apply_mass() argument
47 const CeedScalar *scale_array = ctx ? (CeedScalar *)ctx : NULL; in apply_mass()
48 const CeedScalar scale = ctx ? scale_array[4] : 1.; in apply_mass()
66 CEED_QFUNCTION(apply_mass_two)(void *ctx, const CeedInt Q, const CeedScalar *const *in, CeedScalar … in apply_mass_two() argument

12345678