| /libCEED/julia/LibCEED.jl/src/generated/ |
| H A D | libceed_bindings.jl | 124 function CeedRegistryGetList(n, resources, array) 128 function CeedInit(resource, ceed) 132 function CeedSetStream(ceed, handle) 136 function CeedReferenceCopy(ceed, ceed_copy) 140 function CeedGetResource(ceed, resource) 144 function CeedIsDeterministic(ceed, is_deterministic) 148 function CeedAddJitSourceRoot(ceed, jit_source_root) 152 function CeedView(ceed, stream) 156 function CeedDestroy(ceed) 163 function CeedSetErrorHandler(ceed, eh) [all …]
|
| /libCEED/julia/LibCEED.jl/src/ |
| H A D | QFunction.jl | 11 A `QFunction` can also be created from the "Q-function gallery" using 12 [`create_interior_qfunction`](@ref). The identity Q-function can be created using 19 function QFunction(ref, user_qf) 34 function create_interior_qfunction(c::Ceed, f::UserQFunction; vlength=1) 37 # no C source for this Q-function 57 Create a [`QFunction`](@ref) from the Q-function gallery, using the provided name. 72 function create_interior_qfunction(c::Ceed, name::AbstractString) 84 operators for p-multigrid. Backends may optimize `CeedOperators` with this Q-function to 87 function create_identity_qfunction(c::Ceed, size, inmode::EvalMode, outmode::EvalMode) 93 function add_input!(qf::AbstractQFunction, name::AbstractString, size, emode) [all …]
|
| H A D | Operator.jl | 7 function Operator(ref, qf, dqf, dqfT) 23 Creates a libCEED `CeedOperator` object using the given Q-function `qf`, and optionally its 45 function Operator(c::Ceed; qf, dqf=QFunctionNone(), dqfT=QFunctionNone(), fields) 53 function Operator( 70 function create_composite_operator(c::Ceed, ops) 81 function set_field!( 100 function apply!( 118 function apply_add!( 135 function assemble_diagonal!(op::Operator, diag::CeedVector; request=RequestImmediate()) 147 function assemble_add_diagonal!(op::Operator, diag::CeedVector; request=RequestImmediate())
|
| H A D | Ceed.jl | 10 function Base.showerror(io::IO, e::CeedError) 17 function handle_ceed_error( 49 function Ceed(spec::AbstractString="/cpu/self") 74 function getresource(c::Ceed) 86 function isdeterministic(c::Ceed) 98 function get_preferred_memtype(c::Ceed) 110 function iscuda(c::Ceed)
|
| H A D | Cuda.jl | 20 @inline function Cassette.overdub(::CeedCudaContext, ::typeof(Core.kwfunc), f) 23 @inline function Cassette.overdub(::CeedCudaContext, ::typeof(Core.apply_type), args...) 26 @inline function Cassette.overdub( 35 @eval @inline function Cassette.overdub( 44 function setarray!(v::CeedVector, mtype::MemType, cmode::CopyMode, arr::CuArray) 57 function generate_kernel(qf_name, kf, dims_in, dims_out) 120 function $qf(ctx_ptr, Q, fields) 147 function mk_cufunction(ceed, def_module, qf_name, kf, dims_in, dims_out)
|
| H A D | Misc.jl | 42 @inline function setvoigt!(V, J, ::CeedDim{1}) 46 @inline function setvoigt!(V, J, ::CeedDim{2}) 54 @inline function setvoigt!(V, J, ::CeedDim{3}) 83 @inline function getvoigt!(J, V, ::CeedDim{1}) 87 @inline function getvoigt!(J, V, ::CeedDim{2}) 96 @inline function getvoigt!(J, V, ::CeedDim{3}) 106 function tmp_view(obj, view_fn) 117 function ceed_show(io::IO, obj, view_fn)
|
| H A D | CeedVector.jl | 24 function CeedVector(c::Ceed, len::Integer; allocate::Bool=true) 41 function Base.show(io::IO, ::MIME"text/plain", v::CeedVector) 50 function Base.length(::Type{T}, v::CeedVector) where {T} 83 function norm(v::CeedVector, ntype::NormType) 98 function norm(v::CeedVector, p::Real) 129 function setarray!(v::CeedVector, mtype::MemType, cmode::CopyMode, arr) 139 Sync the [`CeedVector`](@ref) to a specified [`MemType`](@ref). This function is used to 141 already synchronized, this function results in a no-op. 152 function takearray!(v::CeedVector, mtype::MemType) 159 # Helper function to parse arguments of @witharray and @witharray_read [all …]
|
| H A D | Basis.jl | 25 function Basis(ref) 53 function create_tensor_h1_lagrange_basis(c::Ceed, dim, ncomp, p, q, quad_mode::QuadMode) 78 function create_tensor_h1_basis( 134 function create_h1_basis( 192 function create_hdiv_basis( 250 function create_hcurl_basis( 307 function apply!( 321 Performs the same function as the above-defined [`apply!`](@ref apply!(b::Basis, nelem, 327 function apply(b::Basis, u::AbstractVector; nelem=1, tmode=NOTRANSPOSE, emode=EVAL_INTERP) 349 function getdimension(b::Basis) [all …]
|
| H A D | UserQFunction.jl | 8 @inline function extract_context(ptr, ::Type{T}) where {T} 12 @inline function extract_array(ptr, idx, dims) 16 function generate_user_qfunction( 72 @inline function $qf1( 109 @inline function $qf2($ctx_ptr::Ptr{Cvoid}, $(array_names...)) 136 function meta_user_qfunction(ceed, def_module, qf, args) 194 Creates a user-defined interior (volumetric) Q-function, and assigns it to a variable named 195 `name`. The definition of the Q-function is given as: 208 constants in the Q-function. For example, if `dim` is a variable set to the dimension of the 209 problem, then `dim=dim` will make `dim` available in the body of the Q-function as a [all …]
|
| H A D | ElemRestriction.jl | 20 function ElemRestriction(ref) 70 function create_elem_restriction( 136 function create_elem_restriction_oriented( 206 function create_elem_restriction_curl_oriented( 256 function create_elem_restriction_strided(c::Ceed, nelem, elemsize, ncomp, lsize, strides) 277 function apply!( 294 function apply(r::ElemRestriction, u::AbstractVector; tmode=NOTRANSPOSE) 320 function create_evector(r::ElemRestriction) 331 function create_lvector(r::ElemRestriction) 342 function create_vectors(r::ElemRestriction) [all …]
|
| H A D | Context.jl | 4 function Context(ref::Ref{C.CeedQFunctionContext}) 28 function Context(c::Ceed, data; mtype=MEM_HOST, cmode=USE_POINTER) 36 function set_data!(ctx::Context, mtype, cmode::CopyMode, data) 38 # it is accessed in the user Q-function.
|
| H A D | LibCEED.jl | 160 function __init__() 178 function ceedversion() 192 function isrelease() 225 This function sets the library path as a _preference_ associated with the currently active 229 function set_libceed_path!(path::AbstractString) 241 function set_libceed_path!(sym::Symbol) 284 function get_scalar_type(handle::Ptr{Nothing}) 302 function configure_scalar_type(handle::Ptr{Nothing})
|
| H A D | Quadrature.jl | 9 function gauss_quadrature(q) 31 function lobatto_quadrature(q, mode::Mode=Abscissa) where {Mode}
|
| /libCEED/julia/LibCEED.jl/docs/src/ |
| H A D | UserQFunctions.md | 14 ## Apply mass Q-function in C 17 an example of a user Q-function defined in C. This is the "apply mass" 18 Q-function from `ex1-volume.c`, which computes the action of the mass operator. 22 at each qudarture point). It is the action of $D$ that the Q-function must 23 implement. The C source of the Q-function is: 26 /// libCEED Q-function for applying a mass operator 41 From this example, we see that a user Q-function is a C callback that takes a 46 function evaluated at each quadrature point. The second input array is `qdata`, 49 definition of this Q-function, the `CeedQFunction` object is created by 62 ## Apply mass Q-function in Julia [all …]
|
| H A D | Examples.md | 9 defined in `ex1-function-c.jl`.
|
| /libCEED/julia/LibCEED.jl/examples/ |
| H A D | ex1-volume-c.jl | 10 # libCEED Q-function for building quadrature data for a mass operator 11 function f_build_mass_c( 46 # libCEED Q-function for applying a mass operator 47 function f_apply_mass_c( 62 function get_cartesian_mesh_size_c(dim, order, prob_size) 84 function build_cartesian_restriction_c( 160 function set_cartesian_mesh_coords_c(dim, nxyz, mesh_order, mesh_coords) 185 function transform_mesh_coords_c(dim, mesh_size, mesh_coords) 215 function run_ex1_c(; ceed_spec, dim, mesh_order, sol_order, num_qpts, prob_size) 272 # Create the Q-function that builds the mass operator (i.e. computes its [all …]
|
| H A D | common.jl | 1 function get_cartesian_mesh_size(dim, order, prob_size) 28 function build_cartesian_restriction( 104 function set_cartesian_mesh_coords!(dim, nxyz, mesh_order, mesh_coords)
|
| H A D | ex2-surface.jl | 5 function transform_mesh_coords!(dim, mesh_size, mesh_coords) 15 function run_ex2(; ceed_spec, dim, mesh_order, sol_order, num_qpts, prob_size, gallery) 70 # Create the Q-function that builds the diffusion operator (i.e. computes its 109 # Create the Q-function that defines the action of the diffusion operator.
|
| H A D | ex1-volume.jl | 5 function transform_mesh_coords!(dim, mesh_size, mesh_coords) 31 function run_ex1(; ceed_spec, dim, mesh_order, sol_order, num_qpts, prob_size, gallery) 67 # Create the Q-function that builds the mass operator (i.e. computes its 105 # Create the Q-function that defines the action of the mass operator.
|
| H A D | ex3-volume.jl | 5 function transform_mesh_coords!(dim, mesh_size, mesh_coords) 31 function run_ex3(; ceed_spec, dim, mesh_order, sol_order, num_qpts, prob_size) 77 …#Create the Q-function that builds the mass+diffusion operator ( i.e it computes the quadrature da… 122 # Create the Q-function that defines the action of the mass+diffusion operator.
|
| /libCEED/julia/LibCEED.jl/test/ |
| H A D | buildmats.jl | 1 function build_mats_hdiv(qref, qweight, ::Type{T}=Float64) where {T} 42 function build_mats_hcurl(qref, qweight, ::Type{T}=Float64) where {T}
|
| H A D | rundevtests.jl | 3 function checkoutput(str, fname)
|
| /libCEED/python/tests/ |
| H A D | check.py | 13 caller.function +
|
| /libCEED/julia/LibCEED.jl/gen/ |
| H A D | generator.jl | 3 function generate_ceed_bindings(ceed_path)
|
| /libCEED/doc/sphinx/source/ |
| H A D | precision.md | 22 …truct LibCEED.jl to use this library with the {code}`set_libceed_path!` function and restart the J… 25 … The {c:func}`scalar_type()` function has been added to the {code}`Ceed` class for convenience.
|