Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 25 of 34) sorted by relevance

12

/libCEED/examples/fluids/problems/
H A Dstg_shur14.c75 CeedScalar *wall_dist = &stg_ctx->data[stg_ctx->offsets.wall_dist]; in ReadStgInflow()
76 CeedScalar *eps = &stg_ctx->data[stg_ctx->offsets.eps]; in ReadStgInflow()
77 CeedScalar *lt = &stg_ctx->data[stg_ctx->offsets.lt]; in ReadStgInflow()
78 …(*ubar)[stg_ctx->nprofs] = (CeedScalar(*)[stg_ctx->nprofs]) & stg_ctx->data[stg_ctx->offsets.ubar]; in ReadStgInflow()
104 …ar(*cij)[stg_ctx->nprofs] = (CeedScalar(*)[stg_ctx->nprofs]) & stg_ctx->data[stg_ctx->offsets.cij]; in ReadStgInflow()
131 CeedScalar *phi = &stg_ctx->data[stg_ctx->offsets.phi]; in ReadStgRand()
132 …ar(*d)[stg_ctx->nmodes] = (CeedScalar(*)[stg_ctx->nmodes]) & stg_ctx->data[stg_ctx->offsets.d]; in ReadStgRand()
133 …sigma)[stg_ctx->nmodes] = (CeedScalar(*)[stg_ctx->nmodes]) & stg_ctx->data[stg_ctx->offsets.sigma]; in ReadStgRand()
183 temp_ctx->offsets.sigma = 0; in GetStgContextData()
184 temp_ctx->offsets.d = nmodes * 3; in GetStgContextData()
[all …]
/libCEED/julia/LibCEED.jl/src/
H A DElemRestriction.jl42 offsets::AbstractArray{CeedInt},
55 - `nelem`: Number of elements described in the `offsets` array
59 component $j$, element $k$ can be found in the L-vector at index `offsets[i
63 - `offsets`: Array of shape `(elemsize, nelem)`. Column $i$ holds the ordered list of the
64 offsets (into the input [`CeedVector`](@ref)) for the unknowns corresponding
65 to element $i$, where $0 \leq i < \textit{nelem}$. All offsets must be in
67 - `mtype`: Memory type of the `offsets` array, see [`MemType`](@ref)
68 - `cmode`: Copy mode for the `offsets` array, see [`CopyMode`](@ref)
77 offsets::AbstractArray{CeedInt};
91 offsets,
[all …]
/libCEED/backends/memcheck/
H A Dceed-memcheck-restriction.c83 …vv[elem_size * (k * block_size + e * num_comp) + i - v_offset] = uu[impl->offsets[i + e * elem_siz… in CeedElemRestrictionApplyOffsetNoTranspose_Memcheck_Core()
102 …uu[impl->offsets[i + e * elem_size] + k * comp_stride] * (impl->orients[i + e * elem_size] ? -1.0 … in CeedElemRestrictionApplyOrientedNoTranspose_Memcheck_Core()
123 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
125 uu[impl->offsets[j + (n + 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
131 uu[impl->offsets[j + (n - 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
133 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
135 uu[impl->offsets[j + (n + 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
141 uu[impl->offsets[j + (n - 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
143 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
164 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedUnsignedNoTranspose_Memcheck_Core()
[all …]
H A Dceed-memcheck.h32 const CeedInt *offsets; member
68 …te_Memcheck(CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, const bool *orie…
/libCEED/python/
H A Dceed_elemrestriction.py176 def __init__(self, ceed, nelem, elemsize, ncomp, compstride, lsize, offsets, argument
186 self._array_reference = offsets
193 offsets.__array_interface__['data'][0])
209 def __init__(self, ceed, nelem, elemsize, ncomp, compstride, lsize, offsets, argument
219 self._array_reference = offsets
228 offsets.__array_interface__['data'][0])
248 def __init__(self, ceed, nelem, elemsize, ncomp, compstride, lsize, offsets, argument
258 self._array_reference = offsets
267 offsets.__array_interface__['data'][0])
315 offsets, memtype=MEM_HOST, cmode=COPY_VALUES): argument
[all …]
H A Dceed.py196 def ElemRestriction(self, nelem, elemsize, ncomp, compstride, lsize, offsets, argument
222 offsets, memtype=memtype, cmode=cmode)
225offsets, orients, memtype=lib.CEED_MEM_HOST, cmode=lib.CEED_COPY_VALUES): argument
255 offsets, orients, memtype=memtype, cmode=cmode)
258offsets, curl_orients, memtype=lib.CEED_MEM_HOST, cmode=lib.CEED_COPY_VALUES): argument
288 …self, nelem, elemsize, ncomp, compstride, lsize, offsets, curl_orients, memtype=memtype, cmode=cmo…
313 lsize, offsets, memtype=lib.CEED_MEM_HOST, argument
341 compstride, lsize, offsets,
345 … lsize, offsets, orients, memtype=lib.CEED_MEM_HOST, cmode=lib.CEED_COPY_VALUES): argument
379 offsets, orients, memtype=memtype, cmode=cmode)
[all …]
/libCEED/tests/
H A Dt214-elemrestriction.c10 const CeedInt *offsets; in main() local
22 CeedElemRestrictionGetOffsets(elem_restriction, CEED_MEM_HOST, &offsets); in main()
23 CeedElemRestrictionRestoreOffsets(elem_restriction, &offsets); in main()
H A Dt215-elemrestriction.c10 const CeedInt *offsets; in main() local
22 CeedElemRestrictionGetOffsets(elem_restriction, CEED_MEM_HOST, &offsets); in main()
/libCEED/interface/
H A Dceed-elemrestriction.c38 int CeedPermutePadOffsets(const CeedInt *offsets, CeedInt *block_offsets, CeedInt num_block, CeedIn… in CeedPermutePadOffsets() argument
43 …block_offsets[e * elem_size + k * block_size + j] = offsets[CeedIntMin(e + j, num_elem - 1) * elem… in CeedPermutePadOffsets()
269 …lemRestrictionGetOffsets(CeedElemRestriction rstr, CeedMemType mem_type, const CeedInt **offsets) { in CeedElemRestrictionGetOffsets() argument
271 CeedCall(CeedElemRestrictionGetOffsets(rstr->rstr_base, mem_type, offsets)); in CeedElemRestrictionGetOffsets()
275 CeedCall(rstr->GetOffsets(rstr, mem_type, offsets)); in CeedElemRestrictionGetOffsets()
291 int CeedElemRestrictionRestoreOffsets(CeedElemRestriction rstr, const CeedInt **offsets) { in CeedElemRestrictionRestoreOffsets() argument
293 CeedCall(CeedElemRestrictionRestoreOffsets(rstr->rstr_base, offsets)); in CeedElemRestrictionRestoreOffsets()
295 *offsets = NULL; in CeedElemRestrictionRestoreOffsets()
658 … CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, CeedElemRestriction *rstr) { in CeedElemRestrictionCreate() argument
664 …delegate, num_elem, elem_size, num_comp, comp_stride, l_size, mem_type, copy_mode, offsets, rstr)); in CeedElemRestrictionCreate()
[all …]
H A Dceed-fortran.c230 … int *copymode, const int *offsets, int *elemrestriction, int *err) { in fCeedElemRestrictionCreate() argument
236 const int *offsets_ = offsets; in fCeedElemRestrictionCreate()
250 … int *copymode, const int *offsets, const bool *orients, int *elemrestriction, int *err) { in fCeedElemRestrictionCreateOriented() argument
256 const int *offsets_ = offsets; in fCeedElemRestrictionCreateOriented()
271 … int *memtype, int *copymode, const int *offsets, const int8_t *curlorients, in fCeedElemRestrictionCreateCurlOriented() argument
278 const int *offsets_ = offsets; in fCeedElemRestrictionCreateCurlOriented()
311 … int *memtype, int *copymode, const int *offsets, int *elemrestriction, int *err) { in fCeedElemRestrictionCreateBlocked() argument
317 const int *offsets_ = offsets; in fCeedElemRestrictionCreateBlocked()
331 … int *lsize, int *memtype, int *copymode, const int *offsets, const bool *orients, in fCeedElemRestrictionCreateBlockedOriented() argument
338 const int *offsets_ = offsets; in fCeedElemRestrictionCreateBlockedOriented()
[all …]
/libCEED/backends/ref/
H A Dceed-ref-restriction.c70 …vv[elem_size * (k * block_size + e * num_comp) + i - v_offset] = uu[impl->offsets[i + e * elem_siz… in CeedElemRestrictionApplyOffsetNoTranspose_Ref_Core()
89 …uu[impl->offsets[i + e * elem_size] + k * comp_stride] * (impl->orients[i + e * elem_size] ? -1.0 … in CeedElemRestrictionApplyOrientedNoTranspose_Ref_Core()
110 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
112 uu[impl->offsets[j + (n + 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
118 uu[impl->offsets[j + (n - 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
120 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
122 uu[impl->offsets[j + (n + 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
128 uu[impl->offsets[j + (n - 1) * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
130 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
153 uu[impl->offsets[j + n * block_size + e * elem_size] + k * comp_stride] * in CeedElemRestrictionApplyCurlOrientedUnsignedNoTranspose_Ref_Core()
[all …]
H A Dceed-ref.h21 const CeedInt *offsets; member
67 …nCreate_Ref(CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, const bool *orie…
/libCEED/backends/sycl-ref/
H A Dceed-sycl-restriction.sycl.cpp205 …RestrictionGetOffsets_Sycl(CeedElemRestriction rstr, CeedMemType m_type, const CeedInt **offsets) { in CeedElemRestrictionGetOffsets_Sycl() argument
212 *offsets = impl->h_offsets; in CeedElemRestrictionGetOffsets_Sycl()
215 *offsets = impl->d_offsets; in CeedElemRestrictionGetOffsets_Sycl()
338 …Create_Sycl(CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, const bool *orie… in CeedElemRestrictionCreate_Sycl() argument
402 if (offsets != NULL) { in CeedElemRestrictionCreate_Sycl()
404 memcpy(impl->h_offsets_owned, offsets, elem_size * num_elem * sizeof(CeedInt)); in CeedElemRestrictionCreate_Sycl()
410 impl->h_offsets_owned = (CeedInt *)offsets; in CeedElemRestrictionCreate_Sycl()
416 impl->h_offsets_borrowed = (CeedInt *)offsets; in CeedElemRestrictionCreate_Sycl()
420 if (offsets != NULL) { in CeedElemRestrictionCreate_Sycl()
429 CeedCallBackend(CeedElemRestrictionOffset_Sycl(rstr, offsets)); in CeedElemRestrictionCreate_Sycl()
[all …]
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-restriction.c319 …strictionGetOffsets_Cuda(CeedElemRestriction rstr, CeedMemType mem_type, const CeedInt **offsets) { in CeedElemRestrictionGetOffsets_Cuda() argument
327 *offsets = rstr_type == CEED_RESTRICTION_POINTS ? impl->h_offsets_at_points : impl->h_offsets; in CeedElemRestrictionGetOffsets_Cuda()
330 *offsets = rstr_type == CEED_RESTRICTION_POINTS ? impl->d_offsets_at_points : impl->d_offsets; in CeedElemRestrictionGetOffsets_Cuda()
498 …Create_Cuda(CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, const bool *orie… in CeedElemRestrictionCreate_Cuda() argument
519 max_points = CeedIntMax(max_points, offsets[i + 1] - offsets[i]); in CeedElemRestrictionCreate_Cuda()
552 CeedInt num_points = offsets[i + 1] - offsets[i]; in CeedElemRestrictionCreate_Cuda()
559 offsets_padded[i * max_points + j] = offsets[offsets[i] + j] * num_comp; in CeedElemRestrictionCreate_Cuda()
567 …CeedCallBackend(CeedSetHostCeedIntArray(offsets, copy_mode, at_points_size, &impl->h_offsets_at_po… in CeedElemRestrictionCreate_Cuda()
575 offsets = (const CeedInt *)offsets_padded; in CeedElemRestrictionCreate_Cuda()
592 …CeedCallBackend(CeedSetHostCeedIntArray(offsets, copy_mode, size, &impl->h_offsets_owned, &impl->h… in CeedElemRestrictionCreate_Cuda()
[all …]
/libCEED/backends/hip-ref/
H A Dceed-hip-ref-restriction.c320 …estrictionGetOffsets_Hip(CeedElemRestriction rstr, CeedMemType mem_type, const CeedInt **offsets) { in CeedElemRestrictionGetOffsets_Hip() argument
328 *offsets = rstr_type == CEED_RESTRICTION_POINTS ? impl->h_offsets_at_points : impl->h_offsets; in CeedElemRestrictionGetOffsets_Hip()
331 *offsets = rstr_type == CEED_RESTRICTION_POINTS ? impl->d_offsets_at_points : impl->d_offsets; in CeedElemRestrictionGetOffsets_Hip()
499 …nCreate_Hip(CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, const bool *orie… in CeedElemRestrictionCreate_Hip() argument
520 max_points = CeedIntMax(max_points, offsets[i + 1] - offsets[i]); in CeedElemRestrictionCreate_Hip()
553 CeedInt num_points = offsets[i + 1] - offsets[i]; in CeedElemRestrictionCreate_Hip()
560 offsets_padded[i * max_points + j] = offsets[offsets[i] + j] * num_comp; in CeedElemRestrictionCreate_Hip()
568 …CeedCallBackend(CeedSetHostCeedIntArray(offsets, copy_mode, at_points_size, &impl->h_offsets_at_po… in CeedElemRestrictionCreate_Hip()
576 offsets = (const CeedInt *)offsets_padded; in CeedElemRestrictionCreate_Hip()
593 …CeedCallBackend(CeedSetHostCeedIntArray(offsets, copy_mode, size, &impl->h_offsets_owned, &impl->h… in CeedElemRestrictionCreate_Hip()
[all …]
/libCEED/examples/fluids/qfunctions/
H A Dstg_shur14.h44 const CeedScalar *prof_wd = &stg_ctx->data[stg_ctx->offsets.wall_dist]; in InterpolateProfile()
45 const CeedScalar *prof_eps = &stg_ctx->data[stg_ctx->offsets.eps]; in InterpolateProfile()
46 const CeedScalar *prof_lt = &stg_ctx->data[stg_ctx->offsets.lt]; in InterpolateProfile()
47 const CeedScalar *prof_ubar = &stg_ctx->data[stg_ctx->offsets.ubar]; in InterpolateProfile()
48 const CeedScalar *prof_cij = &stg_ctx->data[stg_ctx->offsets.cij]; in InterpolateProfile()
131 const CeedScalar *kappa = &stg_ctx->data[stg_ctx->offsets.kappa]; in CalcSpectrum()
160 const CeedScalar *kappa = &stg_ctx->data[stg_ctx->offsets.kappa]; in StgShur14Calc()
161 const CeedScalar *phi = &stg_ctx->data[stg_ctx->offsets.phi]; in StgShur14Calc()
162 const CeedScalar *sigma = &stg_ctx->data[stg_ctx->offsets.sigma]; in StgShur14Calc()
163 const CeedScalar *d = &stg_ctx->data[stg_ctx->offsets.d]; in StgShur14Calc()
[all …]
H A Dstg_shur14_type.h44 } offsets; // !< Holds offsets for each array in data member
/libCEED/rust/libceed/src/
H A Delem_restriction.rs165 offsets: &[i32], in create()
186 offsets.as_ptr(), in create()
212 offsets: &[i32], in create_oriented()
234 offsets.as_ptr(), in create_oriented()
254 offsets: &[i32], in create_curl_oriented()
276 offsets.as_ptr(), in create_curl_oriented()
H A Dlib.rs453 offsets: &[i32], in elem_restriction()
456 self, nelem, elemsize, ncomp, compstride, lsize, mtype, offsets, in elem_restriction()
517 offsets: &[i32], in oriented_elem_restriction()
521 self, nelem, elemsize, ncomp, compstride, lsize, mtype, offsets, orients, in oriented_elem_restriction()
604 offsets: &[i32], in curl_oriented_elem_restriction()
615 offsets, in curl_oriented_elem_restriction()
/libCEED/julia/LibCEED.jl/test/
H A Drundevtests.jl24 offsets = Vector{CeedInt}(0:n-1)
25 r = create_elem_restriction(c, 1, n, 1, 1, n, offsets)
H A Druntests.jl232 offsets = Vector{CeedInt}(0:n-1)
233 r = create_elem_restriction(c, 1, n, 1, 1, n, offsets)
280 offsets = Vector{CeedInt}([0:n-1; n-1:2*n-2])
282 r = create_elem_restriction(c, 2, n, 1, lsize, lsize, offsets)
471 offsets = Array{CeedInt}(undef, elemsize, nelem)
474 offsets[1, i] = i - 1
475 offsets[2, i] = i
487 offsets,
530 offsets,
/libCEED/examples/petsc/src/
H A Dswarmutils.c56 CeedInt offsets[num_elem + 1 + num_points]; in DMSwarmCeedContextCreate() local
58 for (PetscInt i = 0; i < num_elem + 1; i++) offsets[i] = cell_points[i + 1] - 1; in DMSwarmCeedContextCreate()
59 …for (PetscInt i = num_elem + 1; i < num_points + num_elem + 1; i++) offsets[i] = cell_points[i + 1… in DMSwarmCeedContextCreate()
63 …d, num_elem, num_points, num_comp, num_points * num_comp, CEED_MEM_HOST, CEED_COPY_VALUES, offsets, in DMSwarmCeedContextCreate()
65 …*ctx)->ceed, num_elem, num_points, dim, num_points * dim, CEED_MEM_HOST, CEED_COPY_VALUES, offsets, in DMSwarmCeedContextCreate()
67 …Points((*ctx)->ceed, num_elem, num_points, 1, num_points, CEED_MEM_HOST, CEED_COPY_VALUES, offsets, in DMSwarmCeedContextCreate()
620 CeedInt *offsets; in SetupProblemSwarm() local
632 PetscCall(PetscCalloc1(num_elem + 1 + num_points, &offsets)); in SetupProblemSwarm()
634 for (PetscInt i = 0; i < num_elem + 1; i++) offsets[i] = cell_points[i + 1] - 1; in SetupProblemSwarm()
635 …for (PetscInt i = num_elem + 1; i < num_points + num_elem + 1; i++) offsets[i] = cell_points[i + 1… in SetupProblemSwarm()
[all …]
/libCEED/backends/opt/
H A Dceed-opt-operator.c68 const CeedInt *offsets = NULL; in CeedOperatorSetupFields_Opt() local
70 CeedCallBackend(CeedElemRestrictionGetOffsets(rstr, CEED_MEM_HOST, &offsets)); in CeedOperatorSetupFields_Opt()
72 … CEED_COPY_VALUES, offsets, &block_rstr[i + start_e])); in CeedOperatorSetupFields_Opt()
73 CeedCallBackend(CeedElemRestrictionRestoreOffsets(rstr, &offsets)); in CeedOperatorSetupFields_Opt()
77 const CeedInt *offsets = NULL; in CeedOperatorSetupFields_Opt() local
79 CeedCallBackend(CeedElemRestrictionGetOffsets(rstr, CEED_MEM_HOST, &offsets)); in CeedOperatorSetupFields_Opt()
82 … CEED_MEM_HOST, CEED_COPY_VALUES, offsets, orients, &block_rstr[i + start_e])); in CeedOperatorSetupFields_Opt()
83 CeedCallBackend(CeedElemRestrictionRestoreOffsets(rstr, &offsets)); in CeedOperatorSetupFields_Opt()
88 const CeedInt *offsets = NULL; in CeedOperatorSetupFields_Opt() local
90 CeedCallBackend(CeedElemRestrictionGetOffsets(rstr, CEED_MEM_HOST, &offsets)); in CeedOperatorSetupFields_Opt()
[all …]
/libCEED/backends/blocked/
H A Dceed-blocked-operator.c68 const CeedInt *offsets = NULL; in CeedOperatorSetupFields_Blocked() local
70 CeedCallBackend(CeedElemRestrictionGetOffsets(rstr, CEED_MEM_HOST, &offsets)); in CeedOperatorSetupFields_Blocked()
72 … CEED_COPY_VALUES, offsets, &block_rstr[i + start_e])); in CeedOperatorSetupFields_Blocked()
73 CeedCallBackend(CeedElemRestrictionRestoreOffsets(rstr, &offsets)); in CeedOperatorSetupFields_Blocked()
77 const CeedInt *offsets = NULL; in CeedOperatorSetupFields_Blocked() local
79 CeedCallBackend(CeedElemRestrictionGetOffsets(rstr, CEED_MEM_HOST, &offsets)); in CeedOperatorSetupFields_Blocked()
82 … CEED_MEM_HOST, CEED_COPY_VALUES, offsets, orients, &block_rstr[i + start_e])); in CeedOperatorSetupFields_Blocked()
83 CeedCallBackend(CeedElemRestrictionRestoreOffsets(rstr, &offsets)); in CeedOperatorSetupFields_Blocked()
88 const CeedInt *offsets = NULL; in CeedOperatorSetupFields_Blocked() local
90 CeedCallBackend(CeedElemRestrictionGetOffsets(rstr, CEED_MEM_HOST, &offsets)); in CeedOperatorSetupFields_Blocked()
[all …]
/libCEED/include/ceed/
H A Dceed.h263 … CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, CeedElemRestriction *rstr);
265 … CeedSize l_size, CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets,
268 … CeedSize l_size, CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets,
273 … CeedMemType mem_type, CeedCopyMode copy_mode, const CeedInt *offsets, CeedElemRestriction *rstr);
276 … const CeedInt *offsets, CeedElemRestriction *rstr);
279 … const CeedInt *offsets, const bool *orients, CeedElemRestriction *rstr);
282 … const CeedInt *offsets, const CeedInt8 *curl_orients, CeedElemRestriction *rstr);

12