Home
last modified time | relevance | path

Searched refs:grad_1d (Results 1 – 25 of 27) sorted by relevance

12

/libCEED/backends/ref/
H A Dceed-ref-basis.c128 const CeedScalar *grad_1d; in CeedBasisApplyCore_Ref() local
130 CeedCallBackend(CeedBasisGetGrad1D(basis, &grad_1d)); in CeedBasisApplyCore_Ref()
136 …CeedCallBackend(CeedTensorContractApply(contract, pre, P, post, Q, grad_1d, t_mode, add && (d > 0), in CeedBasisApplyCore_Ref()
143 const CeedScalar *grad_1d; in CeedBasisApplyCore_Ref() local
145 CeedCallBackend(CeedBasisGetGrad1D(basis, &grad_1d)); in CeedBasisApplyCore_Ref()
159 … contract, pre, P, post, Q, (p == d) ? grad_1d : interp_1d, t_mode, add && (d == dim - 1), in CeedBasisApplyCore_Ref()
278 …ef(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Ref() argument
H A Dceed-ref.h70 …ef(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
/libCEED/examples/mfem/
H A Dbp1.hpp59 mfem::DenseMatrix grad_1d(fe1d->GetDof(), ir.GetNPoints()); in FESpace2Ceed() local
62 mfem::DenseMatrix grad_i(grad_1d.Height(), 1); in FESpace2Ceed()
74 grad_1d(j, i) = grad_i(dof_map_1d[j], 0); in FESpace2Ceed()
77 …esh->Dimension(), fes->GetVDim(), order + 1, ir.GetNPoints(), shape1d.GetData(), grad_1d.GetData(), in FESpace2Ceed()
H A Dbp3.hpp60 mfem::DenseMatrix grad_1d(fe1d->GetDof(), ir.GetNPoints()); in FESpace2Ceed() local
63 mfem::DenseMatrix grad_i(grad_1d.Height(), 1); in FESpace2Ceed()
75 grad_1d(j, i) = grad_i(dof_map_1d[j], 0); in FESpace2Ceed()
78 …esh->Dimension(), fes->GetVDim(), order + 1, ir.GetNPoints(), shape1d.GetData(), grad_1d.GetData(), in FESpace2Ceed()
/libCEED/examples/deal.II/
H A Dbps-ceed.h130 std::vector<CeedScalar> grad_1d(shape_data.shape_gradients.size()); in reinit()
135 grad_1d[j + i * (fe_degree + 1)] = shape_data.shape_gradients[j * n_q_points + i]; in reinit()
144 grad_1d.data(), in reinit()
458 std::vector<CeedScalar> grad_1d(shape_data.shape_gradients.size()); in compute_metric_data()
463 grad_1d[j + i * (fe_degree + 1)] = shape_data.shape_gradients[j * n_q_points + i]; in compute_metric_data()
472 grad_1d.data(), in compute_metric_data()
/libCEED/interface/
H A Dceed-basis.c737 const CeedScalar *grad_1d, *interp_1d; in CeedBasisGetCollocatedGrad() local
748 CeedCall(CeedBasisGetGrad1D(basis, &grad_1d)); in CeedBasisGetCollocatedGrad()
749 …CeedCall(CeedMatrixMatrixMultiply(ceed, grad_1d, (const CeedScalar *)interp_1d_pinv, collo_grad_1d… in CeedBasisGetCollocatedGrad()
1537 …const CeedScalar *grad_1d, const CeedScalar *q_ref_1d, const CeedScalar *q_weight_1d, CeedBasis *b… in CeedBasisCreateTensorH1() argument
1543 …CeedCall(CeedBasisCreateTensorH1(delegate, dim, num_comp, P_1d, Q_1d, interp_1d, grad_1d, q_ref_1d… in CeedBasisCreateTensorH1()
1571 CeedCall(CeedCalloc(Q_1d * P_1d, &(*basis)->grad_1d)); in CeedBasisCreateTensorH1()
1573 if (grad_1d) memcpy((*basis)->grad_1d, grad_1d, Q_1d * P_1d * sizeof(grad_1d[0])); in CeedBasisCreateTensorH1()
1574 …CeedCall(ceed->BasisCreateTensorH1(dim, P_1d, Q_1d, interp_1d, grad_1d, q_ref_1d, q_weight_1d, *ba… in CeedBasisCreateTensorH1()
1597 CeedScalar c1, c2, c3, c4, dx, *nodes, *interp_1d, *grad_1d, *q_ref_1d, *q_weight_1d; in CeedBasisCreateTensorH1Lagrange() local
1606 CeedCall(CeedCalloc(P * Q, &grad_1d)); in CeedBasisCreateTensorH1Lagrange()
[all …]
H A Dceed-fortran.c522 … const CeedScalar *grad_1d, const CeedScalar *q_ref_1d, const CeedScalar *q_weight_1d, int *basis, in fCeedBasisCreateTensorH1() argument
529 …eateTensorH1(Ceed_dict[*ceed], *dim, *num_comp, *P_1d, *Q_1d, interp_1d, grad_1d, q_ref_1d, q_weig… in fCeedBasisCreateTensorH1()
621 CEED_EXTERN void fCeedBasisGetGrad1D(int *basis, CeedScalar *grad_1d, int64_t *offset, int *err) { in fCeedBasisGetGrad1D() argument
625 *offset = grad1d_ - grad_1d; in fCeedBasisGetGrad1D()
H A Dceed-preconditioning.c1285 static int CeedBuildMassLaplace(const CeedScalar *interp_1d, const CeedScalar *grad_1d, const CeedS… in CeedBuildMassLaplace() argument
1299 …for (CeedInt k = 0; k < Q_1d; k++) sum += grad_1d[k * P_1d + i] * q_weight_1d[k] * grad_1d[k * P_1… in CeedBuildMassLaplace()
2909 const CeedScalar *interp_1d, *grad_1d, *q_weight_1d; in CeedOperatorCreateFDMElementInverse() local
2978 CeedCall(CeedBasisGetGrad1D(basis, &grad_1d)); in CeedOperatorCreateFDMElementInverse()
2980 CeedCall(CeedBuildMassLaplace(interp_1d, grad_1d, q_weight_1d, P_1d, Q_1d, dim, mass, laplace)); in CeedOperatorCreateFDMElementInverse()
/libCEED/backends/sycl-shared/
H A Dceed-sycl-shared.hpp33 …ed(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
H A Dceed-sycl-shared-basis.sycl.cpp168 …ed(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Sycl_shared() argument
216 …sycl::event copy_grad = data->sycl_queue.copy<CeedScalar>(grad_1d, impl->d_grad_1d, interp_length,… in CeedBasisCreateTensorH1_Sycl_shared()
/libCEED/backends/hip-shared/
H A Dceed-hip-shared.h41 …ed(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
H A Dceed-hip-shared-basis.c655 …ed(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Hip_shared() argument
674 CeedCallHip(ceed, hipMemcpy(data->d_grad_1d, grad_1d, interp_bytes, hipMemcpyHostToDevice)); in CeedBasisCreateTensorH1_Hip_shared()
/libCEED/backends/cuda-shared/
H A Dceed-cuda-shared.h40 …ed(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
H A Dceed-cuda-shared-basis.c594 …ed(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Cuda_shared() argument
613 CeedCallCuda(ceed, cudaMemcpy(data->d_grad_1d, grad_1d, interp_bytes, cudaMemcpyHostToDevice)); in CeedBasisCreateTensorH1_Cuda_shared()
/libCEED/backends/magma/
H A Dceed-magma.h78 …ma(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
H A Dceed-magma-basis.c531 …ma(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Magma() argument
553 CeedCallBackend(magma_malloc((void **)&impl->d_grad_1d, Q_1d * P_1d * sizeof(grad_1d[0]))); in CeedBasisCreateTensorH1_Magma()
554 magma_setvector(Q_1d * P_1d, sizeof(grad_1d[0]), grad_1d, 1, impl->d_grad_1d, 1, data->queue); in CeedBasisCreateTensorH1_Magma()
/libCEED/include/ceed/jit-source/hip/
H A Dhip-ref-basis-tensor.h78 …const CeedScalar *__restrict__ grad_1d, const CeedScalar *__restrict__ u, CeedScalar *__restrict__… in Grad() argument
88 s_grad_1d[k] = grad_1d[k]; in Grad()
/libCEED/include/ceed/jit-source/cuda/
H A Dcuda-ref-basis-tensor.h78 …const CeedScalar *__restrict__ grad_1d, const CeedScalar *__restrict__ u, CeedScalar *__restrict__… in Grad() argument
88 s_grad_1d[k] = grad_1d[k]; in Grad()
/libCEED/backends/sycl-ref/
H A Dceed-sycl-ref.hpp117 …cl(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
H A Dceed-sycl-ref-basis.sycl.cpp147 const CeedScalar *grad_1d = impl->d_grad_1d; in CeedBasisApplyGrad_Sycl() local
197 s_grad_1d[k] = grad_1d[k]; in CeedBasisApplyGrad_Sycl()
561 …cl(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Sycl() argument
603 …sycl::event copy_grad = data->sycl_queue.copy<CeedScalar>(grad_1d, impl->d_grad_1d, interp_length,… in CeedBasisCreateTensorH1_Sycl()
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref.h157 …da(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
H A Dceed-cuda-ref-basis.c399 …da(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Cuda() argument
418 CeedCallCuda(ceed, cudaMemcpy(data->d_grad_1d, grad_1d, interp_bytes, cudaMemcpyHostToDevice)); in CeedBasisCreateTensorH1_Cuda()
/libCEED/backends/hip-ref/
H A Dceed-hip-ref.h162 …ip(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d,
H A Dceed-hip-ref-basis.c398 …ip(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, in CeedBasisCreateTensorH1_Hip() argument
417 CeedCallHip(ceed, hipMemcpy(data->d_grad_1d, grad_1d, interp_bytes, hipMemcpyHostToDevice)); in CeedBasisCreateTensorH1_Hip()
/libCEED/include/
H A Dceed-impl.h227 …CeedScalar *grad_1d; /* row-major matrix of shape [Q1d, P1d] matrix expressing derivatives of no… member

12