/// @file /// Test creation, evaluation, and destruction for qfunction /// \test Test creation, evaluation, and destruction for qfunction #include #include static int setup(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedScalar *const *out) { const CeedScalar *w = in[0]; CeedScalar *qdata = out[0]; for (CeedInt i=0; i 1.e-14) // LCOV_EXCL_START printf("[%d] v %f != vv %f\n",i, v[i], vv[i]); // LCOV_EXCL_STOP CeedVectorRestoreArrayRead(V, &vv); CeedVectorDestroy(&W); CeedVectorDestroy(&U); CeedVectorDestroy(&V); CeedVectorDestroy(&Qdata); CeedQFunctionDestroy(&qf_setup); CeedQFunctionDestroy(&qf_mass); CeedDestroy(&ceed); return 0; }