/// @file /// Test calculation of dof multiplicity in element restriction /// \test Test calculation of dof multiplicity in element restriction #include int main(int argc, char **argv) { Ceed ceed; CeedVector mult; CeedInt num_elem = 3; CeedInt ind[4*num_elem]; const CeedScalar *mm; CeedElemRestriction r; CeedInit(argv[1], &ceed); CeedVectorCreate(ceed, 3*num_elem+1, &mult); CeedVectorSetValue(mult, 0); // Allocates array for (CeedInt i=0; i 0 && i < 3*num_elem && (i%3==0) ? 1 : 0)) != mm[i]) // LCOV_EXCL_START printf("Error in multiplicity vector: mult[%d] = %f\n", i, (double)mm[i]); // LCOV_EXCL_STOP CeedVectorRestoreArrayRead(mult, &mm); CeedVectorDestroy(&mult); CeedElemRestrictionDestroy(&r); CeedDestroy(&ceed); return 0; }