Lines Matching +full:- +full:f
2 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
3 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
5 # SPDX-License-Identifier: BSD-2-Clause
14 # python ex1_volume -c /cpu/self
15 # python ex1_volume -c /gpu/cuda
50 print(f" Ceed specification [-c] : {args.ceed}")
51 print(f" Mesh dimension [-d] : {dim}")
52 print(f" Mesh degree [-m] : {mesh_degree}")
53 print(f" Solution degree [-p] : {sol_degree}")
54 print(f" Num. 1D quadr. pts [-q] : {num_qpts}")
55 print(f" Approx. # unknowns [-s] : {problem_size}")
56 print(f" QFunction source [-g] : {'gallery' if args.gallery else 'user'}")
62 # Tensor-product Lagrange basis for mesh coordinates
66 # Tensor-product Lagrange basis for solution
100 qf_build = ceed.QFunctionByName(f"Mass{dim}DBuild")
110 os.path.join(file_dir, "ex1-volume.h:build_mass"))
139 os.path.join(file_dir, "ex1-volume.h:apply_mass"))
167 print(f"Exact mesh volume : {exact_volume:.14g}")
168 print(f"Computed mesh volume : {volume:.14g}")
169 print(f"Volume error : {volume - exact_volume:.14g}")
171 # Test mode - check if error is within tolerance
172 tol = 200 * libceed.EPSILON if dim == 1 else 1e-5
173 if abs(volume - exact_volume) > tol:
174 print(f"Volume error : {volume - exact_volume:.14g}")