Lines Matching refs:dim

48 int        GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[dim
49 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[dim], CeedInt degree, …
51 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVecto…
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()
104 printf(" Mesh dimension [-d] : %" CeedInt_FMT "\n", dim); in main()
126 …CeedBasisCreateTensorH1Lagrange(ceed, dim, num_comp_x, mesh_degree + 1, num_qpts, CEED_GAUSS, &mes… in main()
127 CeedBasisCreateTensorH1Lagrange(ceed, dim, 1, sol_degree + 1, num_qpts, CEED_GAUSS, &sol_basis); in main()
130 CeedInt num_xyz[dim]; in main()
132 GetCartesianMeshSize(dim, sol_degree, prob_size, num_xyz); in main()
136 if (dim > 1) printf(", ny = %" CeedInt_FMT, num_xyz[1]); in main()
137 if (dim > 2) printf(", nz = %" CeedInt_FMT, num_xyz[2]); in main()
146 …BuildCartesianRestriction(ceed, dim, num_xyz, mesh_degree, num_comp_x, &mesh_size, num_qpts, &mesh… in main()
147 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, 1, &sol_size, num_qpts, &sol_restriction… in main()
150 printf("Number of mesh nodes : %" CeedInt_FMT "\n", mesh_size / dim); in main()
159 SetCartesianMeshCoords(dim, num_xyz, mesh_degree, mesh_coords); in main()
162 CeedScalar exact_volume = TransformMeshCoords(dim, mesh_size, mesh_coords); in main()
168 build_ctx_data.dim = build_ctx_data.space_dim = dim; in main()
178 snprintf(name, sizeof name, "Mass%" CeedInt_FMT "DBuild", dim); in main()
183 CeedQFunctionAddInput(qf_build, "dx", num_comp_x * dim, CEED_EVAL_GRAD); in main()
199 CeedInt elem_qpts = CeedIntPow(num_qpts, dim); in main()
202 for (CeedInt d = 0; d < dim; d++) num_elem *= num_xyz[d]; in main()
270 CeedScalar tol = (dim == 1 ? 200. * CEED_EPSILON : dim == 2 ? 1E-5 : 1E-5); in main()
294 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[dim]) { in GetCartesianMeshSize() argument
297 CeedInt num_elem = prob_size / CeedIntPow(degree, dim); in GetCartesianMeshSize()
304 CeedInt r = s % dim; in GetCartesianMeshSize()
306 for (CeedInt d = 0; d < dim; d++) { in GetCartesianMeshSize()
307 CeedInt sd = s / dim; in GetCartesianMeshSize()
318 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[dim], CeedInt degree, CeedInt… in BuildCartesianRestriction() argument
321 CeedInt num_nodes = CeedIntPow(p, dim); // number of scalar nodes per element in BuildCartesianRestriction()
322 CeedInt elem_qpts = CeedIntPow(num_qpts, dim); // number of qpts per element in BuildCartesianRestriction()
325 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
339 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
348 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
365 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_… in SetCartesianMeshCoords() argument
369 for (CeedInt d = 0; d < dim; d++) { in SetCartesianMeshCoords()
384 for (CeedInt d = 0; d < dim; d++) { in SetCartesianMeshCoords()
401 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords) { in TransformMeshCoords() argument
406 if (dim == 1) { in TransformMeshCoords()
413 CeedInt num_nodes = mesh_size / dim; in TransformMeshCoords()