Home
last modified time | relevance | path

Searched refs:QFunction (Results 1 – 25 of 35) sorted by relevance

12

/libCEED/julia/LibCEED.jl/src/
H A DQFunction.jl7 QFunction
11 A `QFunction` can also be created from the "Q-function gallery" using
15 mutable struct QFunction <: AbstractQFunction struct
19 function QFunction(ref, user_qf) argument
28 QFunction(ref::Ref{C.CeedQFunction}) = QFunction(ref, nothing) function
29 destroy(qf::QFunction) = C.CeedQFunctionDestroy(qf.ref) # COV_EXCL_LINE argument
30 Base.getindex(qf::QFunction) = qf.ref[] argument
31 Base.show(io::IO, ::MIME"text/plain", qf::QFunction) = argument
51 QFunction(ref, f)
57 Create a [`QFunction`](@ref) from the Q-function gallery, using the provided name.
[all …]
H A DContext.jl22 `USE_POINTER`, then the data will be preserved from the GC when assigned to a `QFunction`
39 # A reference to the context object is stored in the QFunction object, and
H A DLibCEED.jl54 QFunction,
153 include("QFunction.jl")
/libCEED/julia/LibCEED.jl/docs/src/
H A DQFunction.md1 # QFunction chapter
4 QFunction
9 apply!(qf::QFunction, Q, vin, vout)
/libCEED/backends/sycl-ref/
H A Dceed-sycl-ref-qfunction.sycl.cpp36 if (!impl->QFunction) CeedCallBackend(CeedQFunctionBuildKernel_Sycl(qf)); in CeedQFunctionApply_Sycl()
89 cgh.parallel_for(kernel_range, *(impl->QFunction)); in CeedQFunctionApply_Sycl()
119 delete impl->QFunction; in CeedQFunctionDestroy_Sycl()
H A Dceed-sycl-ref-qfunction-load.sycl.cpp40 if (impl->QFunction) return CEED_ERROR_SUCCESS; in CeedQFunctionBuildKernel_Sycl()
172 CeedCallBackend(CeedGetKernel_Sycl(ceed, impl->sycl_module, kernel_name, &impl->QFunction)); in CeedQFunctionBuildKernel_Sycl()
H A Dceed-sycl-ref.hpp73 sycl::kernel *QFunction; member
/libCEED/python/tests/
H A DREADME.md19 the apropriate QFunction single source file and run
22 loading the user defined QFunctions so the QFunction pointers can be passed to
H A Dtest-4-qfunction.py46 qf_setup = ceed.QFunction(1, qfs.setup_mass,
52 qf_mass = ceed.QFunction(1, qfs.apply_mass,
103 qf_setup = ceed.QFunction(1, qfs.setup_mass,
109 qf_mass = ceed.QFunction(1, qfs.apply_mass,
165 qf_setup = ceed.QFunction(1, qfs.setup_mass,
171 qf_mass = ceed.QFunction(1, qfs.apply_mass,
H A Dtest-5-operator.py86 qf_setup = ceed.QFunction(1, qfs.setup_mass,
92 qf_mass = ceed.QFunction(1, qfs.apply_mass,
175 qf_setup = ceed.QFunction(1, qfs.setup_mass,
181 qf_mass = ceed.QFunction(1, qfs.apply_mass,
265 qf_setup = ceed.QFunction(1, qfs.setup_mass,
271 qf_mass = ceed.QFunction(1, qfs.apply_mass_two,
362 qf_setup = ceed.QFunction(1, qfs.setup_mass,
368 qf_mass = ceed.QFunction(1, qfs.apply_mass,
443 qf_setup = ceed.QFunction(1, qfs.setup_mass,
449 qf_mass = ceed.QFunction(1, qfs.apply_mass,
[all …]
/libCEED/rust/libceed/src/
H A Dqfunction.rs119 SomeQFunction(&'a QFunction<'a>),
125 impl<'a> From<&'a QFunction<'_>> for QFunctionOpt<'a> {
126 fn from(qfunc: &'a QFunction) -> Self { in from()
341 pub struct QFunction<'a> { struct
365 impl<'a> Drop for QFunction<'a> { implementation
415 impl<'a> fmt::Display for QFunction<'a> { implementation
572 impl<'a> QFunction<'a> { impl
H A Dlib.rs156 QFunction, QFunctionByName, QFunctionField, QFunctionInputs, QFunctionOpt, QFunctionOutputs,
1109 ) -> Result<QFunction<'a>> { in q_function_interior()
1110 QFunction::create(self, vlength, f) in q_function_interior()
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-qfunction-load.cpp33 if (data->QFunction) return CEED_ERROR_SUCCESS; in CeedQFunctionBuildKernel_Cuda_ref()
110 CeedCallBackend(CeedGetKernel_Cuda(ceed, data->module, kernel_name.c_str(), &data->QFunction)); in CeedQFunctionBuildKernel_Cuda_ref()
H A Dceed-cuda-ref-qfunction.c49 CeedCallBackend(CeedRunKernelAutoblockCuda(ceed, data->QFunction, Q, args)); in CeedQFunctionApply_Cuda()
84 data->QFunction = f; in CeedQFunctionSetCUDAUserFunction_Cuda()
/libCEED/backends/hip-ref/
H A Dceed-hip-ref-qfunction-load.cpp35 if (data->QFunction) return CEED_ERROR_SUCCESS; in CeedQFunctionBuildKernel_Hip_ref()
114 CeedCallBackend(CeedGetKernel_Hip(ceed, data->module, kernel_name.c_str(), &data->QFunction)); in CeedQFunctionBuildKernel_Hip_ref()
H A Dceed-hip-ref-qfunction.c51 …CeedCallBackend(CeedRunKernel_Hip(ceed, data->QFunction, CeedDivUpInt(Q, block_size), block_size, … in CeedQFunctionApply_Hip()
/libCEED/python/
H A D__init__.py13 from .ceed_qfunction import QFunction, QFunctionByName, IdentityQFunction
H A Dceed.py19 from .ceed_qfunction import QFunction, QFunctionByName, IdentityQFunction
568 def QFunction(self, vlength, f, source): member in Ceed
582 return QFunction(self, vlength, f, source)
H A Dceed_qfunction.py74 class QFunction(_QFunctionBase): class
/libCEED/julia/LibCEED.jl/docs/
H A Dmake.jl12 "QFunction.md",
/libCEED/examples/python/
H A Dtutorial-4-qfunction.ipynb38 …"Here we show some basic examples to illustrate the `libceed.QFunction` class. In libCEED, QFuncti…
74 "* In the following example, we create and evaluate a built-in identity QFunction."
107 …"* In the following example, we create and evaluate a QFunction (for the mass operator in 1D) from…
158 …"* In the following example, we create and evaluate a built-in identity QFunction 3 fields per qua…
H A Dex3_volume.py113 qf_build = ceed.QFunction(1, qfs_so.build_mass_diff,
131 qf_apply = ceed.QFunction(1, qfs_so.apply_mass_diff,
H A Dex1_volume.py109 qf_build = ceed.QFunction(1, qfs_so.build_mass,
138 qf_mass = ceed.QFunction(1, qfs_so.apply_mass,
H A Dex2_surface.py111 qf_build = ceed.QFunction(1, qfs_so.build_diff,
140 qf_diff = ceed.QFunction(1, qfs_so.apply_diff,
/libCEED/julia/LibCEED.jl/examples/
H A Dex1-volume-c.jl293 # This creates the QFunction directly.
300 # This creates the QFunction via the gallery.
360 # This creates the QFunction directly.
366 # This creates the QFunction via the gallery.

12