Lines Matching refs:num_dofs
21 CeedInt num_dofs = (n_x * 2 + 1) * (n_y * 2 + 1), num_qpts = num_elem * q * q; in main() local
23 CeedScalar assembled_values[num_dofs * num_dofs]; in main()
24 CeedScalar assembled_true[num_dofs * num_dofs]; in main()
29 CeedVectorCreate(ceed, dim * num_dofs, &x); in main()
31 CeedScalar x_array[dim * num_dofs]; in main()
35 x_array[i + j * (n_x * 2 + 1) + 0 * num_dofs] = (CeedScalar)i / (2 * n_x); in main()
36 x_array[i + j * (n_x * 2 + 1) + 1 * num_dofs] = (CeedScalar)j / (2 * n_y); in main()
41 CeedVectorCreate(ceed, num_dofs, &u); in main()
42 CeedVectorCreate(ceed, num_dofs, &v); in main()
55 …CeedElemRestrictionCreate(ceed, num_elem, p * p, dim, num_dofs, dim * num_dofs, CEED_MEM_HOST, CEE… in main()
56 …CeedElemRestrictionCreate(ceed, num_elem, p * p, 1, 1, num_dofs, CEED_MEM_HOST, CEED_USE_POINTER, … in main()
96 for (CeedInt k = 0; k < num_dofs * num_dofs; ++k) { in main()
108 assembled_values[rows[k] * num_dofs + cols[k]] += assembled_array[k]; in main()
115 for (CeedInt j = 0; j < num_dofs; j++) { in main()
129 for (CeedInt i = 0; i < num_dofs; i++) assembled_true[i * num_dofs + j] = v_array[i]; in main()
134 for (CeedInt i = 0; i < num_dofs; i++) { in main()
135 for (CeedInt j = 0; j < num_dofs; j++) { in main()
136 …if (fabs(assembled_values[i * num_dofs + j] - assembled_true[i * num_dofs + j]) > 100. * CEED_EPSI… in main()
138 …_FMT ", %" CeedInt_FMT "] Error in assembly: %f != %f\n", i, j, assembled_values[i * num_dofs + j], in main()
139 assembled_true[i * num_dofs + j]); in main()