Lines Matching full:dim
41 dim = args.dim
45 …problem_size = args.problem_size if args.problem_size > 0 else (500 * dim * dim if args.test else …
46 ncomp_x = dim # Number of coordinate components
52 print(f" Mesh dimension [-d] : {dim}")
65 dim, ncomp_x, mesh_degree + 1, num_qpts, libceed.GAUSS)
69 dim, 1, sol_degree + 1, num_qpts, libceed.GAUSS)
73 num_xyz = common.get_cartesian_mesh_size(dim, sol_degree, problem_size)
76 if dim > 1:
78 if dim > 2:
83 num_q_comp = dim * (dim + 1) // 2
85 ceed, dim, num_xyz, mesh_degree, ncomp_x, num_q_comp, num_qpts, create_qdata=False)
87 ceed, dim, num_xyz, sol_degree, 1, num_q_comp, num_qpts, create_qdata=True)
90 print("Number of mesh nodes : %d" % (mesh_size // dim))
95 common.set_cartesian_mesh_coords(ceed, dim, num_xyz, mesh_degree, mesh_coords)
96 _, exact_surface_area = common.transform_mesh_coords(dim, mesh_size, mesh_coords, use_sin=False)
102 qf_build = ceed.QFunctionByName(f"Poisson{dim}DBuild")
105 ctx_data = np.array([dim, dim], dtype=np.int32)
113 qf_build.add_input("dx", dim * dim, libceed.EVAL_GRAD)
131 qf_diff = ceed.QFunctionByName(f"Poisson{dim}DApply")
134 ctx_data = np.array([dim, dim], dtype=np.int32)
142 qf_diff.add_input("du", dim, libceed.EVAL_GRAD)
144 qf_diff.add_output("dv", dim, libceed.EVAL_GRAD)
160 u_array[i] = sum(x_array[i + j * (sol_size)] for j in range(dim))
177 tol = 10000 * libceed.EPSILON if dim == 1 else 1e-1