Lines Matching refs:dim
5 function transform_mesh_coords!(dim, mesh_size, mesh_coords) argument
12 exact_sa = (dim == 1 ? 2 : dim == 2 ? 4 : 6)
15 function run_ex2(; ceed_spec, dim, mesh_order, sol_order, num_qpts, prob_size, gallery) argument
16 ncompx = dim
24 create_tensor_h1_lagrange_basis(ceed, dim, ncompx, mesh_order + 1, num_qpts, GAUSS)
26 create_tensor_h1_lagrange_basis(ceed, dim, 1, sol_order + 1, num_qpts, GAUSS)
28 nxyz = get_cartesian_mesh_size(dim, sol_order, prob_size)
35 dim,
44 dim,
47 div(dim*(dim + 1), 2),
53 dim,
60 println("Number of mesh nodes : ", div(mesh_size, dim))
65 set_cartesian_mesh_coords!(dim, nxyz, mesh_order, mesh_coords)
68 exact_sa = transform_mesh_coords!(dim, mesh_size, mesh_coords)
75 dim=dim,
76 (J, :in, EVAL_GRAD, dim, dim),
78 (qdata, :out, EVAL_NONE, dim*(dim + 1)÷2),
85 build_qfunc = create_interior_qfunction(ceed, "Poisson$(dim)DBuild")
101 elem_qpts = num_qpts^dim
103 qdata = CeedVector(ceed, num_elem*elem_qpts*div(dim*(dim + 1), 2))
113 dim=dim,
114 (du, :in, EVAL_GRAD, dim),
115 (qdata, :in, EVAL_NONE, dim*(dim + 1)÷2),
116 (dv, :out, EVAL_GRAD, dim),
123 apply_qfunc = create_interior_qfunction(ceed, "Poisson$(dim)DApply")
149 size = (mesh_size÷dim, dim),
165 dim=3,