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
9 import sys
24 # ------------------------------------------------------------------------------
32 # libCEED object
35 # libCEED call
57 # libCEED call
72 """Check return code and retrieve error message for non-zero code"""
76 raise Exception(ffi.string(message[0]).decode("UTF-8"))
85 # libCEED call
90 return ffi.string(resource[0]).decode("UTF-8")
99 # libCEED call
115 # --- Basis utility functions ---
119 """Construct a Gauss-Legendre quadrature.
123 degree 2*Q-1 exactly)
126 (qref1d, qweight1d): array of length Q to hold the abscissa on [-1, 1]
143 # libCEED call
151 """Construct a Gauss-Legendre-Lobatto quadrature.
155 degree 2*Q-3 exactly)
158 (qref1d, qweight1d): array of length Q to hold the abscissa on [-1, 1]
174 # libCEED call
181 # --- libCEED objects ---
205 compstride: Stride between components for the same L-vector "node".
207 L-vector at index [offsets[i] + k*compstride].
208 lsize: The size of the L-vector. This vector may be larger than
214 [0, lsize - 1].
234 compstride: Stride between components for the same L-vector "node".
236 L-vector at index [offsets[i] + k*compstride].
237 lsize: The size of the L-vector. This vector may be larger than
243 [0, lsize - 1].
259 """Ceed Curl Oriented ElemRestriction: curl-oriented restriction from local
267 compstride: Stride between components for the same L-vector "node".
269 L-vector at index [offsets[i] + k*compstride].
270 lsize: The size of the L-vector. This vector may be larger than
276 [0, lsize - 1].
278 a row-major tridiagonal matrix (curl_orients[i, 0] =
279 curl_orients[i, 3 * elemsize - 1] = 0, where 0 <= i < nelem)
299 lsize: The size of the L-vector. This vector may be larger than
303 L-vector is given by
324 lsize: The size of the L-vector. This vector may be larger than
330 [0, lsize - 1]. The backend will permute and pad this
355 compstride: Stride between components for the same L-vector "node".
357 L-vector at index [offsets[i] + k*compstride].
358 lsize: The size of the L-vector. This vector may be larger than
364 [0, lsize - 1]. The backend will permute and pad this
383 """Ceed Blocked Curl Oriented ElemRestriction: blocked curl-oriented
392 compstride: Stride between components for the same L-vector "node".
394 L-vector at index [offsets[i] + k*compstride].
395 lsize: The size of the L-vector. This vector may be larger than
401 [0, lsize - 1]. The backend will permute and pad this
406 a row-major tridiagonal matrix (curl_orients[i, 0] =
407 curl_orients[i, 3 * elemsize - 1] = 0, where 0 <= i < nelem)
429 lsize: The size of the L-vector. This vector may be larger than
433 L-vector is given by
445 """Ceed Tensor H1 Basis: finite element tensor-product basis objects for
453 *interp1d: Numpy array holding the row-major (Q1d * P1d) matrix
456 *grad1d: Numpy array holding the row-major (Q1d * P1d) matrix
460 quadrature points on the 1D reference element [-1, 1]
471 """Ceed Tensor H1 Lagrange Basis: finite element tensor-product Lagrange
477 P: number of Gauss-Lobatto nodes in one dimension. The
478 polynomial degree of the resulting Q_k element is k=P-1.
489 """Ceed H1 Basis: finite element non tensor-product basis for H^1
497 *interp: Numpy array holding the row-major (nqpts * nnodes) matrix
500 *grad: Numpy array holding the row-major (dim * nqpts * nnodes)
504 quadrature points on the reference element [-1, 1]
515 """Ceed Hdiv Basis: finite element non tensor-product basis for H(div)
523 *interp: Numpy array holding the row-major (dim * nqpts * nnodes)
526 *div: Numpy array holding the row-major (nqpts * nnodes) matrix
530 quadrature points on the reference element [-1, 1]
542 """Ceed Hcurl Basis: finite element non tensor-product basis for H(curl)
550 *interp: Numpy array holding the row-major (dim * nqpts * nnodes)
553 *curl: Numpy array holding the row-major (curlcomp * nqpts * nnodes),
557 quadrature points on the reference element [-1, 1]
569 """Ceed QFunction: point-wise operation at quadrature points for
585 """Ceed QFunction By Name: point-wise operation at quadrature points
619 """Ceed Operator: composed FE-type operations on vectors.
643 # libCEED call
646 # ------------------------------------------------------------------------------