Lines Matching refs:dim

48 int        GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[3]);
49 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[3], CeedInt degree, Ce…
51 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[3], CeedInt mesh_degree, CeedVector …
52 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords);
57 CeedInt dim = 3; // dimension of the mesh in main() local
74 parse_error = next_arg ? dim = atoi(argv[++ia]), 0 : 1; in main()
75 num_comp_x = dim; in main()
97 if (prob_size < 0) prob_size = test ? 16 * 16 * dim * dim : 256 * 1024; in main()
108 printf(" Mesh dimension [-d] : %" CeedInt_FMT "\n", dim); in main()
130 …CeedBasisCreateTensorH1Lagrange(ceed, dim, num_comp_x, mesh_degree + 1, num_qpts, CEED_GAUSS, &mes… in main()
131 CeedBasisCreateTensorH1Lagrange(ceed, dim, 1, sol_degree + 1, num_qpts, CEED_GAUSS, &sol_basis); in main()
136 GetCartesianMeshSize(dim, sol_degree, prob_size, num_xyz); in main()
141 if (dim > 1) printf(", ny = %" CeedInt_FMT, num_xyz[1]); in main()
142 if (dim > 2) printf(", nz = %" CeedInt_FMT, num_xyz[2]); in main()
151 …BuildCartesianRestriction(ceed, dim, num_xyz, mesh_degree, num_comp_x, &mesh_size, num_qpts, &mesh… in main()
152 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, dim * (dim + 1) / 2, &sol_size, num_qpts… in main()
153 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, 1, &sol_size, num_qpts, &sol_restriction… in main()
156 printf("Number of mesh nodes : %" CeedInt_FMT "\n", mesh_size / dim); in main()
165 SetCartesianMeshCoords(dim, num_xyz, mesh_degree, mesh_coords); in main()
168 CeedScalar exact_surface_area = TransformMeshCoords(dim, mesh_size, mesh_coords); in main()
174 build_ctx_data.dim = build_ctx_data.space_dim = dim; in main()
184 snprintf(name, sizeof name, "Poisson%" CeedInt_FMT "DBuild", dim); in main()
189 CeedQFunctionAddInput(qf_build, "dx", num_comp_x * dim, CEED_EVAL_GRAD); in main()
191 CeedQFunctionAddOutput(qf_build, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE); in main()
205 CeedInt elem_qpts = CeedIntPow(num_qpts, dim); in main()
208 for (CeedInt d = 0; d < dim; d++) num_elem *= num_xyz[d]; in main()
209 CeedVectorCreate(ceed, num_elem * elem_qpts * dim * (dim + 1) / 2, &q_data); in main()
218 snprintf(name, sizeof name, "Poisson%" CeedInt_FMT "DApply", dim); in main()
223 CeedQFunctionAddInput(qf_apply, "du", dim, CEED_EVAL_GRAD); in main()
224 CeedQFunctionAddInput(qf_apply, "qdata", dim * (dim + 1) / 2, CEED_EVAL_NONE); in main()
225 CeedQFunctionAddOutput(qf_apply, "dv", dim, CEED_EVAL_GRAD); in main()
252 for (CeedInt d = 0; d < dim; d++) u_array[i] += x_array[i + d * sol_size]; in main()
290 CeedScalar tol = (dim == 1 ? 10000. * CEED_EPSILON : dim == 2 ? 1E-1 : 1E-1); in main()
314 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[3]) { in GetCartesianMeshSize() argument
317 CeedInt num_elem = prob_size / CeedIntPow(degree, dim); in GetCartesianMeshSize()
324 CeedInt r = s % dim; in GetCartesianMeshSize()
326 for (CeedInt d = 0; d < dim; d++) { in GetCartesianMeshSize()
327 CeedInt sd = s / dim; in GetCartesianMeshSize()
338 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[3], CeedInt degree, CeedInt n… in BuildCartesianRestriction() argument
341 CeedInt num_nodes = CeedIntPow(p, dim); // number of scalar nodes per element in BuildCartesianRestriction()
342 CeedInt elem_qpts = CeedIntPow(num_qpts, dim); // number of qpts per element in BuildCartesianRestriction()
345 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
359 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
368 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
389 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[3], CeedInt mesh_degree, CeedVector mesh_co… in SetCartesianMeshCoords() argument
393 for (CeedInt d = 0; d < dim; d++) { in SetCartesianMeshCoords()
408 for (CeedInt d = 0; d < dim; d++) { in SetCartesianMeshCoords()
424 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords) { in TransformMeshCoords() argument
425 CeedScalar exact_surface_area = (dim == 1 ? 2 : dim == 2 ? 4 : 6); in TransformMeshCoords()