Lines Matching +full:libceed +full:- +full:sys
1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors
2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 # SPDX-License-Identifier: BSD-2-Clause
8 import sys
14 import libceed
24 dim: Problem dimension (1-3)
33 parser = argparse.ArgumentParser(description="libCEED surface area example")
34 parser.add_argument("-c", "--ceed", default="/cpu/self",
35 help="libCEED resource specifier (default: /cpu/self)")
36 parser.add_argument("-d", "--dim", type=int, default=3,
37 help="Problem dimension (1-3) (default: 3)")
38 parser.add_argument("-m", "--mesh-degree", type=int, default=4,
40 parser.add_argument("-p", "--solution-degree", type=int, default=4,
42 parser.add_argument("-q", "--quadrature-points", type=int, default=6,
44 parser.add_argument("-s", "--problem-size", type=int, default=-1,
46 parser.add_argument("-t", "--test", action="store_true",
48 parser.add_argument("--quiet", action="store_true",
50 parser.add_argument("-g", "--gallery", action="store_true",
63 dim: Spatial dimension (1-3)
86 r -= 1
95 ceed: libCEED context
117 nd.append(num_xyz[d] * (p - 1) + 1) # Nodes per dimension
138 g_node += (e_xyz[d] * (p - 1) + r_node % p) * g_stride
160 ceed: libCEED context
173 nd.append(num_xyz[d] * (p - 1) + 1)
178 nodes = 0.5 + 0.5 * nodes # Map from [-1,1] to [0,1]
186 elem_id = d_1d // (p - 1)
187 node_id = d_1d % (p - 1)
191 mesh_coords.set_array(coords, cmode=libceed.COPY_VALUES)
215 x = coords[i] - 0.5
226 x = coords[i] - 0.5