Lines Matching refs:dim
49 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[dim…
50 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[dim], CeedInt degree, …
52 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVecto…
53 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords);
58 CeedInt dim = 3; // dimension of the mesh in main() local
75 parse_error = next_arg ? dim = atoi(argv[++ia]), 0 : 1; in main()
76 num_comp_x = dim; in main()
105 printf(" Mesh dimension [-d] : %" CeedInt_FMT "\n", dim); in main()
136 …CeedBasisCreateTensorH1Lagrange(ceed, dim, num_comp_x, mesh_degree + 1, num_qpts, CEED_GAUSS, &mes… in main()
137 CeedBasisCreateTensorH1Lagrange(ceed, dim, 1, sol_degree + 1, num_qpts, CEED_GAUSS, &sol_basis); in main()
140 CeedInt num_xyz[dim]; in main()
142 GetCartesianMeshSize(dim, sol_degree, prob_size, num_xyz); in main()
146 if (dim > 1) printf(", ny = %" CeedInt_FMT, num_xyz[1]); in main()
147 if (dim > 2) printf(", nz = %" CeedInt_FMT, num_xyz[2]); in main()
156 …BuildCartesianRestriction(ceed, dim, num_xyz, mesh_degree, num_comp_x, &mesh_size, num_qpts, &mesh… in main()
157 …BuildCartesianRestriction(ceed, dim, num_xyz, sol_degree, 1, &sol_size, num_qpts, &sol_restriction… in main()
160 printf("Number of mesh nodes : %" CeedInt_FMT "\n", mesh_size / dim); in main()
169 SetCartesianMeshCoords(dim, num_xyz, mesh_degree, mesh_coords); in main()
172 CeedScalar exact_volume = TransformMeshCoords(dim, mesh_size, mesh_coords); in main()
178 build_ctx_data.dim = build_ctx_data.space_dim = dim; in main()
188 snprintf(name, sizeof name, "Mass%" CeedInt_FMT "DBuild", dim); in main()
193 CeedQFunctionAddInput(qf_build, "dx", num_comp_x * dim, CEED_EVAL_GRAD); in main()
209 CeedInt elem_qpts = CeedIntPow(num_qpts, dim); in main()
212 for (CeedInt d = 0; d < dim; d++) num_elem *= num_xyz[d]; in main()
280 CeedScalar tol = (dim == 1 ? 200. * CEED_EPSILON : dim == 2 ? 1E-5 : 1E-5); in main()
304 int GetCartesianMeshSize(CeedInt dim, CeedInt degree, CeedInt prob_size, CeedInt num_xyz[dim]) { in GetCartesianMeshSize() argument
307 CeedInt num_elem = prob_size / CeedIntPow(degree, dim); in GetCartesianMeshSize()
314 CeedInt r = s % dim; in GetCartesianMeshSize()
316 for (CeedInt d = 0; d < dim; d++) { in GetCartesianMeshSize()
317 CeedInt sd = s / dim; in GetCartesianMeshSize()
328 int BuildCartesianRestriction(Ceed ceed, CeedInt dim, CeedInt num_xyz[dim], CeedInt degree, CeedInt… in BuildCartesianRestriction() argument
331 CeedInt num_nodes = CeedIntPow(p, dim); // number of scalar nodes per element in BuildCartesianRestriction()
332 CeedInt elem_qpts = CeedIntPow(num_qpts, dim); // number of qpts per element in BuildCartesianRestriction()
335 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
349 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
358 for (CeedInt d = 0; d < dim; d++) { in BuildCartesianRestriction()
375 int SetCartesianMeshCoords(CeedInt dim, CeedInt num_xyz[dim], CeedInt mesh_degree, CeedVector mesh_… in SetCartesianMeshCoords() argument
379 for (CeedInt d = 0; d < dim; d++) { in SetCartesianMeshCoords()
394 for (CeedInt d = 0; d < dim; d++) { in SetCartesianMeshCoords()
411 CeedScalar TransformMeshCoords(CeedInt dim, CeedInt mesh_size, CeedVector mesh_coords) { in TransformMeshCoords() argument
416 if (dim == 1) { in TransformMeshCoords()
423 CeedInt num_nodes = mesh_size / dim; in TransformMeshCoords()