/// @file /// Test creation, action, and destruction for identity operator /// \test Test creation, action, and destruction for identity operator #include #include #include int main(int argc, char **argv) { Ceed ceed; CeedElemRestriction elem_restr_u, elem_restr_u_i; CeedBasis basis_u; CeedQFunction qf_identity; CeedOperator op_identity; CeedVector U, V; const CeedScalar *hv; CeedInt num_elem = 15, P = 5, Q = 8; CeedInt elem_size = P, num_nodes = num_elem*(P-1)+1; CeedInt ind_u[num_elem*P]; CeedInit(argv[1], &ceed); // Restrictions for (CeedInt i=0; i1e-14) // LCOV_EXCL_START printf("%d: Computed Value: %f != True Value: 1.0\n", i, hv[i]); // LCOV_EXCL_STOP CeedVectorRestoreArrayRead(V, &hv); CeedQFunctionDestroy(&qf_identity); CeedOperatorDestroy(&op_identity); CeedElemRestrictionDestroy(&elem_restr_u); CeedElemRestrictionDestroy(&elem_restr_u_i); CeedBasisDestroy(&basis_u); CeedVectorDestroy(&U); CeedVectorDestroy(&V); CeedDestroy(&ceed); return 0; }