Lines Matching refs:coef

171             PetscScalar *coef = NULL;  in LandauFormJacobian_Internal()  local
172 PetscCall(DMPlexVecGetClosure(ctx->plex[grid], section[grid], locX2, ei, NULL, &coef)); in LandauFormJacobian_Internal()
173 …PetscCall(PetscMemcpy(cellClosure_it, coef, Nb * Nf[grid] * sizeof(*cellClosure_it))); /* change i… in LandauFormJacobian_Internal()
174 … PetscCall(DMPlexVecRestoreClosure(ctx->plex[grid], section[grid], locX2, ei, NULL, &coef)); in LandauFormJacobian_Internal()
251 PetscScalar *coef, coef_buff[LANDAU_MAX_SPECIES * LANDAU_MAX_NQND]; in LandauFormJacobian_Internal() local
255coef = &cellClosure[b_id * IPf_sz_glb + ipf_offset[grid] + loc_elem * Nb * loc_Nf]; // this is con… in LandauFormJacobian_Internal()
257 coef = coef_buff; in LandauFormJacobian_Internal()
263 coef[f * Nb + b] = xdata[idx + moffset]; in LandauFormJacobian_Internal()
266 coef[f * Nb + b] = 0; in LandauFormJacobian_Internal()
270 coef[f * Nb + b] += scale * xdata[id + moffset]; in LandauFormJacobian_Internal()
291 ff[idx] += Bq[cidx] * PetscRealPart(coef[f * Nb + cidx]); in LandauFormJacobian_Internal()
292 …Int d = 0; d < dim; ++d) refSpaceDer[d] += Dq[cidx * dim + d] * PetscRealPart(coef[f * Nb + cidx]); in LandauFormJacobian_Internal()
965 PetscScalar *coef = NULL; in adaptToleranceFEM() local
975 PetscCall(DMPlexVecGetClosure(cdm, cs, coords, c, &csize, &coef)); in adaptToleranceFEM()
978 … = PetscRealPart(coef[d * dim + (dim - 1)]), x = PetscSqr(PetscRealPart(coef[d * dim + 0])) + ((di… in adaptToleranceFEM()
991 PetscCall(DMPlexVecRestoreClosure(cdm, cs, coords, c, &csize, &coef)); in adaptToleranceFEM()