| /libCEED/tests/ |
| H A D | t404-qfunction.c | 11 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 D | t407-qfunction.c | 21 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 D | t408-qfunction.c | 11 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 D | t401-qfunction.c | 17 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 D | t409-qfunction.c | 18 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 D | ceed-identity.c | 27 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 D | ceed-ref-qfunction.c | 18 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 D | ceed-memcheck-qfunction.c | 20 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 D | ex1_volume.py | 103 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 D | ex2_surface.py | 105 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 D | ex3_volume.py | 104 ctx_data = np.array([dim, dim], dtype=np.int32) 105 build_ctx.set_data(ctx_data)
|
| /libCEED/python/tests/ |
| H A D | test-4-qfunction.py | 115 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)
|