/// @file /// Test creation, evaluation, and destruction of identity qfunction with size>1 /// \test Test creation, evaluation, and destruction of identity qfunction with size>1 #include #include int main(int argc, char **argv) { Ceed ceed; CeedVector in[16], out[16]; CeedVector U, V; CeedQFunction qf; CeedInt Q = 8, size = 3; const CeedScalar *v; CeedScalar u[Q*size]; CeedInit(argv[1], &ceed); CeedQFunctionCreateIdentity(ceed, size, CEED_EVAL_INTERP, CEED_EVAL_INTERP, &qf); for (CeedInt i=0; i1e-12) // 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; }