Lines Matching +full:- +full:- +full:exit +full:- +full:code
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 ex2_surface.py -c /cpu/self
15 # python ex2_surface.py -c /gpu/cuda
37 int: 0 on success, error code on failure
51 print(f" Ceed specification [-c] : {args.ceed}")
52 print(f" Mesh dimension [-d] : {dim}")
53 print(f" Mesh degree [-m] : {mesh_degree}")
54 print(f" Solution degree [-p] : {sol_degree}")
55 print(f" Num. 1D quadr. pts [-q] : {num_qpts}")
56 print(f" Approx. # unknowns [-s] : {problem_size}")
57 print(f" QFunction source [-g] : {'gallery' if args.gallery else 'user'}")
63 # Tensor-product Lagrange basis for mesh coordinates
67 # Tensor-product Lagrange basis for solution
112 os.path.join(file_dir, "ex2-surface.h:build_diff"))
141 os.path.join(file_dir, "ex2-surface.h:apply_diff"))
174 print(f"Surface area error : {surface_area - exact_surface_area:.14g}")
176 # Test mode - check if error is within tolerance
177 tol = 10000 * libceed.EPSILON if dim == 1 else 1e-1
178 if abs(surface_area - exact_surface_area) > tol:
179 print(f"Surface area error : {surface_area - exact_surface_area:.14g}")
180 sys.exit(1)
186 sys.exit(main())