Home
last modified time | relevance | path

Searched refs:ctx_data (Results 1 – 12 of 12) sorted by relevance

/libCEED/tests/
H A Dt404-qfunction.c11 CeedScalar ctx_data[5] = {1, 2, 3, 4, 5}, *ctx_data_copy; in main() local
17 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_USE_POINTER, sizeof(ctx_data), &ctx_data); in main()
23 if (ctx_data[4] != 6) printf("error modifying data: %f != 6.0\n", ctx_data[4]); in main()
30 ctx_data[4] = 6; in main()
31 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_data); in main()
H A Dt407-qfunction.c21 TestContext ctx_data = { in main() local
30 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_USE_POINTER, sizeof(TestContext), &ctx_data); in main()
79 if (ctx_data.time != 2.0) printf("Incorrect context data for time: %f != 2.0\n", ctx_data.time); in main()
85 …if (ctx_data.count[0] != 14) printf("Incorrect context data for count[0]: %" CeedInt_FMT " != 14\n… in main()
86 …if (ctx_data.count[1] != 43) printf("Incorrect context data for count[1]: %" CeedInt_FMT " != 43\n… in main()
92 …if (ctx_data.is_set != false) printf("Incorrect context data for is_set: %d != true\n", ctx_data.i… in main()
H A Dt408-qfunction.c11 CeedScalar ctx_data[5] = {1, 2, 3, 4, 5}, *ctx_data_copy; in main() local
16 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_data); in main()
H A Dt401-qfunction.c17 CeedScalar v_true[q], ctx_data[5] = {1, 2, 3, 4, 5}; in main() local
56 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_USE_POINTER, sizeof(ctx_data), &ctx_data); in main()
71 if (fabs(ctx_data[4] * v_true[i] - v_array[i]) > 100. * CEED_EPSILON) { in main()
73 printf("[%" CeedInt_FMT "] v %f != v_true %f\n", i, v_array[i], ctx_data[4] * v_true[i]); in main()
H A Dt409-qfunction.c18 CeedScalar ctx_data[5] = {1, 2, 3, 4, 5}; in main() local
32 CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_data); in main()
46 if (fabs(v_array[i] - ctx_data[1]) > 100. * CEED_EPSILON) { in main()
/libCEED/gallery/identity/
H A Dceed-identity.c27 IdentityCtx ctx_data = {.size = 1}; in CeedQFunctionInit_Identity() local
30 …ll(CeedQFunctionContextSetData(ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(ctx_data), &ctx_data)); in CeedQFunctionInit_Identity()
/libCEED/backends/ref/
H A Dceed-ref-qfunction.c18 void *ctx_data = NULL; in CeedQFunctionApply_Ref() local
24 CeedCallBackend(CeedQFunctionGetContextData(qf, CEED_MEM_HOST, &ctx_data)); in CeedQFunctionApply_Ref()
35 CeedCallBackend(f(ctx_data, Q, impl->inputs, impl->outputs)); in CeedQFunctionApply_Ref()
43 CeedCallBackend(CeedQFunctionRestoreContextData(qf, &ctx_data)); in CeedQFunctionApply_Ref()
/libCEED/backends/memcheck/
H A Dceed-memcheck-qfunction.c20 void *ctx_data = NULL; in CeedQFunctionApply_Memcheck() local
28 CeedCallBackend(CeedQFunctionGetContextData(qf, CEED_MEM_HOST, &ctx_data)); in CeedQFunctionApply_Memcheck()
60 CeedCallBackend(f(ctx_data, Q, impl->inputs, impl->outputs)); in CeedQFunctionApply_Memcheck()
91 CeedCallBackend(CeedQFunctionRestoreContextData(qf, &ctx_data)); in CeedQFunctionApply_Memcheck()
/libCEED/examples/python/
H A Dex1_volume.py103 ctx_data = np.array([dim, dim], dtype=np.int32)
104 build_ctx.set_data(ctx_data)
132 ctx_data = np.array([dim, dim], dtype=np.int32)
133 build_ctx.set_data(ctx_data)
H A Dex2_surface.py105 ctx_data = np.array([dim, dim], dtype=np.int32)
106 build_ctx.set_data(ctx_data)
134 ctx_data = np.array([dim, dim], dtype=np.int32)
135 build_ctx.set_data(ctx_data)
H A Dex3_volume.py104 ctx_data = np.array([dim, dim], dtype=np.int32)
105 build_ctx.set_data(ctx_data)
/libCEED/python/tests/
H A Dtest-4-qfunction.py115 ctx_data = np.array([1., 2., 3., 4., 5.], dtype=ceed.scalar_type())
117 ctx.set_data(ctx_data)
181 ctx_data = np.array([1., 2., 3., 4., 5.], dtype="float64")
184 ctx_data = np.array([1., 2., 3., 4., 5., 1., 2., 3., 4., 5.],
187 ctx.set_data(ctx_data)