/// @file /// Test creation, evaluation, and destruction of identity qfunction /// \test Test creation, evaluation, and destruction of identity qfunction #include #include int main(int argc, char **argv) { Ceed ceed; CeedVector in[16], out[16]; CeedVector U, V; CeedQFunction qf; CeedInt Q = 8; const CeedScalar *v; CeedScalar u[Q]; CeedInit(argv[1], &ceed); CeedQFunctionCreateIdentity(ceed, 1, &qf); for (CeedInt i=0; i1e-14) // LCOV_EXCL_START printf("[%d] v %f != u %f\n",i, v[i], u[i]); // LCOV_EXCL_STOP CeedVectorRestoreArrayRead(V, &v); CeedVectorDestroy(&U); CeedVectorDestroy(&V); CeedQFunctionDestroy(&qf); CeedDestroy(&ceed); return 0; }