Home
last modified time | relevance | path

Searched refs:nmodes (Results 1 – 3 of 3) sorted by relevance

/libCEED/examples/fluids/problems/
H A Dstg_shur14.c132 …CeedScalar(*d)[stg_ctx->nmodes] = (CeedScalar(*)[stg_ctx->nmodes]) & stg_ctx->data[stg_ctx->of… in ReadStgRand()
133 …CeedScalar(*sigma)[stg_ctx->nmodes] = (CeedScalar(*)[stg_ctx->nmodes]) & stg_ctx->data[stg_ctx->of… in ReadStgRand()
135 for (PetscInt i = 0; i < stg_ctx->nmodes; i++) { in ReadStgRand()
168 PetscInt nmodes, nprofs; in GetStgContextData() local
171 PetscCall(PhastaDatFileGetNRows(comm, stg_rand_path, &nmodes)); in GetStgContextData()
173 PetscCheck(nmodes < STG_NMODES_MAX, comm, PETSC_ERR_SUP, in GetStgContextData()
175 nmodes, STG_NMODES_MAX); in GetStgContextData()
181 temp_ctx->nmodes = nmodes; in GetStgContextData()
184 temp_ctx->offsets.d = nmodes * 3; in GetStgContextData()
185 temp_ctx->offsets.phi = temp_ctx->offsets.d + nmodes * 3; in GetStgContextData()
[all …]
/libCEED/examples/fluids/qfunctions/
H A Dstg_shur14.h130 const CeedInt nmodes = stg_ctx->nmodes; in CalcSpectrum() local
136 for (CeedInt n = 0; n < nmodes; n++) { in CalcSpectrum()
143 for (CeedInt n = 0; n < nmodes; n++) qn[n] /= Ektot; in CalcSpectrum()
159 const CeedInt nmodes = stg_ctx->nmodes; in StgShur14Calc() local
167 CeedPragmaSIMD for (CeedInt n = 0; n < nmodes; n++) { in StgShur14Calc()
170 for (CeedInt i = 0; i < 3; i++) xdotd += d[i * nmodes + n] * xhat[i]; in StgShur14Calc()
172 vp[0] += sqrt(qn[n]) * sigma[0 * nmodes + n] * cos_kxdp; in StgShur14Calc()
173 vp[1] += sqrt(qn[n]) * sigma[1 * nmodes + n] * cos_kxdp; in StgShur14Calc()
174 vp[2] += sqrt(qn[n]) * sigma[2 * nmodes + n] * cos_kxdp; in StgShur14Calc()
202 const CeedInt nmodes = stg_ctx->nmodes; in StgShur14Calc_PrecompEktot() local
[all …]
H A Dstg_shur14_type.h21 CeedInt nmodes; // !< Number of wavemodes member