Home
last modified time | relevance | path

Searched refs:curl (Results 1 – 25 of 33) sorted by relevance

12

/libCEED/tests/
H A Dt340-basis.h12 …uildHcurl2DSimplex(CeedScalar *q_ref, CeedScalar *q_weight, CeedScalar *interp, CeedScalar *curl) { in BuildHcurl2DSimplex() argument
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()
56 curl[i * P + 7] = -48. * x1 - 24. * x1 + 24.; in BuildHcurl2DSimplex()
H A Dt342-basis.c15 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()
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.c13 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.c15 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 DREADME.md17     4. CeedBasis non-tensor H(curl) basis tests\
32     8. CeedOperator H(div) and H(curl) tests\
/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/julia/LibCEED.jl/test/
H A Dbuildmats.jl45 curl = Array{T}(undef, 1, Q, P)
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/python/tests/
H A Dbuildmats.py95 curl = np.empty(P * Q, dtype=mat_dtype)
122 curl[i * P + 0] = 2.
123 curl[i * P + 1] = -2.
124 curl[i * P + 2] = -2.
126 return interp, curl
H A Dtest-3-basis.py352 interp, curl = bm.buildmatshcurl(qref, qweight, libceed.scalar_types[
355 b = ceed.BasisHcurl(libceed.TRIANGLE, 1, P, Q, interp, curl, qref, qweight)
/libCEED/include/ceed/jit-source/cuda/
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/ceed/jit-source/hip/
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/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/backends/ref/
H A Dceed-ref-basis.c225 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()
356 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis) { in CeedBasisCreateHcurl_Ref() argument
H A Dceed-ref.h77 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis);
/libCEED/interface/
H A Dceed-basis.c1792 … 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()
2006 const CeedScalar *q_ref, *q_weight, *interp, *grad, *div, *curl; in CeedBasisView() local
2016 CeedCall(CeedBasisGetCurl(basis, &curl)); in CeedBasisView()
2030 if (curl) { in CeedBasisView()
2032 CeedCall(CeedScalarView("curl", "\t% 12.8f", q_comp * Q, P, curl, tabs, stream)); in CeedBasisView()
2456 int CeedBasisGetCurl(CeedBasis basis, const CeedScalar **curl) { in CeedBasisGetCurl() argument
[all …]
/libCEED/backends/magma/
H A Dceed-magma.h85 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis);
H A Dceed-magma-basis.c771 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis) { in CeedBasisCreateHcurl_Magma() argument
792 if (curl) { in CeedBasisCreateHcurl_Magma()
796 …ackend(magma_malloc((void **)&impl->d_curl, num_qpts * num_nodes * q_comp_curl * sizeof(curl[0]))); in CeedBasisCreateHcurl_Magma()
797 …magma_setvector(num_qpts * num_nodes * q_comp_curl, sizeof(curl[0]), curl, 1, impl->d_curl, 1, dat… in CeedBasisCreateHcurl_Magma()
/libCEED/rust/libceed/src/
H A Dbasis.rs294 curl: &[crate::Scalar], in create_Hcurl()
313 curl.as_ptr(), in create_Hcurl()
H A Dlib.rs1062 curl: &[crate::Scalar], in basis_Hcurl()
1067 self, topo, ncomp, nnodes, nqpts, interp, curl, qref, qweight, in basis_Hcurl()
/libCEED/python/
H A Dceed.py541 interp, curl, qref, qweight):
565 interp, curl, qref, qweight)
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref.h164 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis);
H A Dceed-cuda-ref-basis.c557 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis) { in CeedBasisCreateHcurl_Cuda() argument
579 if (curl) { in CeedBasisCreateHcurl_Cuda()
583 CeedCallCuda(ceed, cudaMemcpy(data->d_curl, curl, curl_bytes, cudaMemcpyHostToDevice)); in CeedBasisCreateHcurl_Cuda()
/libCEED/backends/hip-ref/
H A Dceed-hip-ref.h169 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis);
H A Dceed-hip-ref-basis.c556 … const CeedScalar *curl, const CeedScalar *q_ref, const CeedScalar *q_weight, CeedBasis basis) { in CeedBasisCreateHcurl_Hip() argument
578 if (curl) { in CeedBasisCreateHcurl_Hip()
582 CeedCallHip(ceed, hipMemcpy(data->d_curl, curl, curl_bytes, hipMemcpyHostToDevice)); in CeedBasisCreateHcurl_Hip()
/libCEED/include/
H A Dceed-impl.h229 …CeedScalar *curl; /* row-major matrix of shape [curl_dim * Q, P], curl_dim = 1 if dim < 3 else dim… member

12