Home
last modified time | relevance | path

Searched full:curl (Results 1 – 25 of 54) sorted by relevance

123

/libCEED/tests/
H A Dt342-basis.c2 /// Test curl with a 2D Simplex non-tensor H(curl) basis
3 /// \test Test curl with a 2D Simplex non-tensor H(curl) basis
15 CeedScalar interp[dim * p * q], curl[p * q]; in main() local
20 BuildHcurl2DSimplex(q_ref, q_weight, interp, curl); in main()
21 …CeedBasisCreateHcurl(ceed, CEED_TOPOLOGY_TRIANGLE, 1, p, q, interp, curl, q_ref, q_weight, &basis); in main()
23 // Test curl for H(curl) in main()
29 …if (fabs(curl[i] - curl_in_basis[i]) > 100. * CEED_EPSILON) printf("%f != %f\n", curl[i], curl_in_… in main()
36 row_sum[i] += curl[j + i * p]; in main()
42 column_sum[i] += curl[i + j * p]; in main()
H A Dt340-basis.h10 // H(curl) basis for order 2 Nédélec (first kind) triangle element in 2D
12 …uildHcurl2DSimplex(CeedScalar *q_ref, CeedScalar *q_weight, CeedScalar *interp, CeedScalar *curl) { in BuildHcurl2DSimplex() argument
48 // Curl in BuildHcurl2DSimplex()
49 curl[i * P + 0] = 24. * x1 - 6.; in BuildHcurl2DSimplex()
50 curl[i * P + 1] = 24. * x2 - 6.; in BuildHcurl2DSimplex()
51 curl[i * P + 2] = 24. * x1 + 24. * x2 - 18.; in BuildHcurl2DSimplex()
52 curl[i * P + 3] = -24. * x2 + 6.; in BuildHcurl2DSimplex()
53 curl[i * P + 4] = -24. * x1 - 24. * x2 + 18.; in BuildHcurl2DSimplex()
54 curl[i * P + 5] = 24. * x1 - 6.; in BuildHcurl2DSimplex()
55 curl[i * P + 6] = 24. * x1 + 48. * x2 - 24.; in BuildHcurl2DSimplex()
[all …]
H A Dt340-basis.c2 /// Test creation and destruction of a 2D Simplex non-tensor H(curl) basis
3 /// \test Test creation and destruction of a 2D Simplex non-tensor H(curl) basis
13 CeedScalar interp[dim * p * q], curl[p * q]; in main() local
20 BuildHcurl2DSimplex(q_ref, q_weight, interp, curl); in main()
21 …CeedBasisCreateHcurl(ceed, CEED_TOPOLOGY_TRIANGLE, 1, p, q, interp, curl, q_ref, q_weight, &basis); in main()
H A Dt341-basis.c2 /// Test interpolation with a 2D Simplex non-tensor H(curl) basis
3 /// \test Test interpolation with a 2D Simplex non-tensor H(curl) basis
15 CeedScalar interp[dim * p * q], curl[p * q]; in main() local
20 BuildHcurl2DSimplex(q_ref, q_weight, interp, curl); in main()
21 …CeedBasisCreateHcurl(ceed, CEED_TOPOLOGY_TRIANGLE, 1, p, q, interp, curl, q_ref, q_weight, &basis); in main()
23 // Test interpolation for H(curl) in main()
H A DREADME.md17     4. CeedBasis non-tensor H(curl) basis tests\
32     8. CeedOperator H(div) and H(curl) tests\
H A Dt219-elemrestriction.c2 /// Test creation, use, and destruction of a blocked curl-conforming oriented element restriction
3 /// \test Test creation, use, and destruction of a blocked curl-conforming oriented element restric…
H A Dt583-operator.c2 /// Test full assembly of mass matrix operator with oriented and curl-oriented element restrictions…
3 /// \test Test full assembly of mass matrix operator with oriented and curl-oriented element restri…
171 … printf("[%" CeedInt_FMT ", %" CeedInt_FMT "] Error in curl-oriented assembly: %f != %f\n", i, j, in main()
H A Dt582-operator.c2 /// Test creation, action, and destruction for mass matrix operator using a trivial curl-oriented e…
3 /// \test Test creation, action, and destruction for mass matrix operator using a trivial curl-orie…
H A Dt218-elemrestriction.c2 /// Test creation, use, and destruction of a curl-conforming oriented element restriction with and …
3 /// \test Test creation, use, and destruction of a curl-conforming oriented element restriction wit…
/libCEED/julia/LibCEED.jl/test/
H A Dbuildmats.jl45 curl = Array{T}(undef, 1, Q, P)
71 # Curl
72 curl[1, i, 1] = 2.0
73 curl[1, i, 2] = -2.0
74 curl[1, i, 3] = -2.0
77 return interp, curl
/libCEED/tests/output/
H A Dt340-basis.out1 CeedBasis in a H(curl) space on a triangle element
17 curl:
22 CeedBasis in a H(curl) space on a triangle element
38 curl:
/libCEED/python/tests/
H A Dbuildmats.py95 curl = np.empty(P * Q, dtype=mat_dtype)
121 # Curl
122 curl[i * P + 0] = 2.
123 curl[i * P + 1] = -2.
124 curl[i * P + 2] = -2.
126 return interp, curl
/libCEED/
H A D.gitlab-ci.yml81 …1576870152feb62f3f0cf6b061d036dcdb5 && { [[ -d libxsmm-$XSMM_HASH ]] || { curl -L https://github.c…
125 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F interface;
126 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F gallery;
127 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F backends;
128 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F tests;
129 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F examples;
213 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F interface;
214 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F gallery;
215 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F backends;
216 … bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${CODECOV_ACCESS_TOKEN} -F tests;
[all …]
/libCEED/python/
H A Dceed.py259 """Ceed Curl Oriented ElemRestriction: curl-oriented restriction from local
285 elemrestriction: Ceed Curl Oriented ElemRestiction"""
383 """Ceed Blocked Curl Oriented ElemRestriction: blocked curl-oriented
413 elemrestriction: Ceed Blocked Curl Oriented ElemRestiction"""
541 interp, curl, qref, qweight):
542 """Ceed Hcurl Basis: finite element non tensor-product basis for H(curl)
553 *curl: Numpy array holding the row-major (curlcomp * nqpts * nnodes),
554 curlcomp = 1 if dim < 3 else dim, matrix expressing the curl
565 interp, curl, qref, qweight)
H A Dceed_elemrestriction.py245 …"""Ceed Curl Oriented ElemRestriction: curl-oriented restriction from local vectors to elements."""
403 …"""Ceed Blocked Curl Oriented ElemRestriction: blocked curl-oriented restriction from local vector…
/libCEED/julia/LibCEED.jl/src/
H A DBasis.jl231 create_hcurl_basis(c::Ceed, topo::Topology, ncomp, nnodes, nqpts, interp, curl, qref, qweight)
233 Create a non tensor-product basis for H(curl) discretizations
243 - `curl`: Matrix of size `(curlcomp, nqpts, nnodes)`, `curlcomp = 1 if dim < 3 else dim`)
244 matrix expressing curl of basis functions at quadrature points.
257 curl::AbstractArray{CeedScalar},
264 @assert size(curl) == (curlcomp, nqpts, nnodes)
270 curl_rowmajor = permutedims(curl, [3, 2, 1])
466 getnumqpts(b), getnumnodes(b))` for a given vector $H(div)$ or $H(curl)$ basis.
543 Get the curl matrix of the given [`Basis`](@ref). Returns a tensor of size
/libCEED/interface/
H A Dceed-types.c42 [CEED_EVAL_CURL] = "curl", [CEED_EVAL_WEIGHT] = "quadrature weights",
65 [CEED_FE_SPACE_HCURL] = "H(curl) space",
H A Dceed-basis.c336 @ref CEED_EVAL_CURL to use curl,
890 @ref CEED_EVAL_CURL to use curl
1774 @brief Create a non tensor-product basis for \f$H(\mathrm{curl})\f$ discretizations
1778 @param[in] num_comp Number of components (usually 1 for vectors in \f$H(\mathrm{curl})\f$ bases)
1782 …am[in] curl Row-major (`curl_comp * num_qpts * num_nodes`, `curl_comp = 1` if `dim < 3` othe…
1792 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis *basis) { in CeedBasisCreateHcurl() argument
1800 …CeedCall(CeedBasisCreateHcurl(delegate, topo, num_comp, num_nodes, num_qpts, interp, curl, q_ref, … in CeedBasisCreateHcurl()
1826 CeedCall(CeedMalloc(curl_comp * Q * P, &(*basis)->curl)); in CeedBasisCreateHcurl()
1828 if (curl) memcpy((*basis)->curl, curl, curl_comp * Q * P * sizeof(curl[0])); in CeedBasisCreateHcurl()
1829 CeedCall(ceed->BasisCreateHcurl(topo, dim, P, Q, interp, curl, q_ref, q_weight, *basis)); in CeedBasisCreateHcurl()
[all …]
/libCEED/include/ceed/jit-source/hip/
H A Dhip-ref-restriction-curl-oriented.h9 /// Internal header for HIP curl-oriented element restriction kernels
13 // L-vector -> E-vector, curl-oriented
38 // L-vector -> E-vector, unsigned curl-oriented
63 // E-vector -> L-vector, curl-oriented
121 // E-vector -> L-vector, unsigned curl-oriented
H A Dhip-ref-operator-assemble-diagonal.h22 … const CeedScalar *interp, const CeedScalar *grad, const CeedScalar *div, const CeedScalar *curl) { in GetBasisPointer() argument
37 *basis_ptr = curl; in GetBasisPointer()
/libCEED/include/ceed/jit-source/cuda/
H A Dcuda-ref-restriction-curl-oriented.h9 /// Internal header for CUDA curl-oriented element restriction kernels
13 // L-vector -> E-vector, curl-oriented
38 // L-vector -> E-vector, unsigned curl-oriented
63 // E-vector -> L-vector, curl-oriented
121 // E-vector -> L-vector, unsigned curl-oriented
H A Dcuda-ref-operator-assemble-diagonal.h22 … const CeedScalar *interp, const CeedScalar *grad, const CeedScalar *div, const CeedScalar *curl) { in GetBasisPointer() argument
37 *basis_ptr = curl; in GetBasisPointer()
/libCEED/include/
H A Dceed-impl.h199 … /* initialized in element restriction constructor for default, oriented, curl-oriented, or stride…
219 …e; /* initialized in basis constructor with 1, 2, 3 for H^1, H(div), and H(curl) FE space */
229 …CeedScalar *curl; /* row-major matrix of shape [curl_dim * Q, P], curl_dim = 1 if dim < 3 else dim… member
230 quadrature points for H(curl) discretizations */
/libCEED/backends/ref/
H A Dceed-ref-basis.c223 // Evaluate the curl to/from the quadrature points in CeedBasisApplyCore_Ref()
225 const CeedScalar *curl; in CeedBasisApplyCore_Ref() local
227 CeedCallBackend(CeedBasisGetCurl(basis, &curl)); in CeedBasisApplyCore_Ref()
228 …eedTensorContractStridedApply(contract, num_comp, P, num_elem, q_comp, Q, curl, t_mode, add, u, v)… in CeedBasisApplyCore_Ref()
353 // Basis Create Non-Tensor H(curl)
356 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis) { in CeedBasisCreateHcurl_Ref() argument
/libCEED/rust/libceed/src/
H A Dlib.rs113 Curl = bind_ceed::CeedEvalMode_CEED_EVAL_CURL as isize, enumerator
123 bind_ceed::CeedEvalMode_CEED_EVAL_CURL => EvalMode::Curl, in from_u32()
525 /// Returns a curl-oriented ElemRestriction, $\mathcal{E}$, which extracts
974 /// Returns an $H(curl)$ Basis
984 /// * `curl` - Row-major `(curl_comp * nqpts * nnodes)`, `curl_comp = 1 if
985 /// dim < 3 else dim` matrix expressing the curl of basis
1022 /// let curl = [
1047 /// &curl,
1062 curl: &[crate::Scalar], in basis_Hcurl()
1067 self, topo, ncomp, nnodes, nqpts, interp, curl, qref, qweight, in basis_Hcurl()

123