Home
last modified time | relevance | path

Searched refs:elemVec (Results 1 – 6 of 6) sorted by relevance

/petsc/src/dm/dt/fe/tests/
H A Dex2.c239 PetscScalar *u, *elemVec; in TestIntegration() local
251 PetscCall(PetscMalloc2(chunkSize * totDim, &u, chunkSize * totDim, &elemVec)); in TestIntegration()
262 PetscCall(PetscArrayzero(elemVec, chunkSize * totDim)); in TestIntegration()
275 … PetscCall(PetscFEIntegrateResidual(ds, key, Ne, chunkGeom, u, NULL, NULL, NULL, 0.0, elemVec)); in TestIntegration()
282 PetscCall(PetscFree2(u, elemVec)); in TestIntegration()
H A Dex1.c186 PetscScalar *u, *elemVec; in TestIntegration() local
203 PetscCall(PetscMalloc2(chunkSize * totDim, &u, chunkSize * totDim, &elemVec)); in TestIntegration()
214 PetscCall(PetscArrayzero(elemVec, chunkSize * totDim)); in TestIntegration()
228 … PetscCall(PetscFEIntegrateResidual(ds, key, Ne, chunkGeom, u, NULL, NULL, NULL, 0.0, elemVec)); in TestIntegration()
236 PetscCall(PetscFree2(u, elemVec)); in TestIntegration()
/petsc/src/dm/dt/fe/impls/opencl/
H A Dfeopencl.c502 …ents_t[], PetscDS probAux, const PetscScalar coefficientsAux[], PetscReal t, PetscScalar elemVec[]) in PetscFEIntegrateResidual_OpenCL() argument
565 …l_Basic(prob, key, Ne, cgeom, coefficients, coefficients_t, probAux, coefficientsAux, t, elemVec)); in PetscFEIntegrateResidual_OpenCL()
684 for (b = 0; b < N_bt; ++b) elemVec[c * N_bt + b] = (PetscScalar)elem[c * N_bt + b]; in PetscFEIntegrateResidual_OpenCL()
696 for (b = 0; b < N_bt; ++b) elemVec[c * N_bt + b] = (PetscScalar)elem[c * N_bt + b]; in PetscFEIntegrateResidual_OpenCL()
705 …eueReadBuffer(ocl->queue_id, o_elemVec, CL_TRUE, 0, Ne * N_bt * realSize, elemVec, 0, NULL, NULL)); in PetscFEIntegrateResidual_OpenCL()
/petsc/src/dm/dt/fe/interface/
H A Dfe.c1479 …ents_t[], PetscDS probAux, const PetscScalar coefficientsAux[], PetscReal t, PetscScalar elemVec[]) in PetscFEIntegrateResidual() argument
1486 …residual)(ds, key, Ne, cgeom, coefficients, coefficients_t, probAux, coefficientsAux, t, elemVec)); in PetscFEIntegrateResidual()
1514 …ents_t[], PetscDS probAux, const PetscScalar coefficientsAux[], PetscReal t, PetscScalar elemVec[]) in PetscFEIntegrateBdResidual() argument
1521 …dual)(ds, wf, key, Ne, fgeom, coefficients, coefficients_t, probAux, coefficientsAux, t, elemVec)); in PetscFEIntegrateBdResidual()
1551 …ents_t[], PetscDS probAux, const PetscScalar coefficientsAux[], PetscReal t, PetscScalar elemVec[]) in PetscFEIntegrateHybridResidual() argument
1559 …In, key, s, Ne, fgeom, cgeom, coefficients, coefficients_t, probAux, coefficientsAux, t, elemVec)); in PetscFEIntegrateHybridResidual()
2501 …sDer[], PetscInt e, PetscFEGeom *fegeom, PetscScalar f0[], PetscScalar f1[], PetscScalar elemVec[]) in PetscFEUpdateElementVec_Internal() argument
2531 elemVec[b] += tmpBasis[bcidx] * f0[qcidx]; in PetscFEUpdateElementVec_Internal()
2532 for (d = 0; d < dE; ++d) elemVec[b] += tmpBasisDer[bcidx * dE + d] * f1[qcidx * dE + d]; in PetscFEUpdateElementVec_Internal()
2539 …alar tmpBasisDer[], PetscFEGeom *fegeom, PetscScalar f0[], PetscScalar f1[], PetscScalar elemVec[]) in PetscFEUpdateElementVec_Hybrid_Internal() argument
[all …]
/petsc/src/dm/dt/fe/impls/basic/
H A Dfebasic.c389 …cients_t[], PetscDS dsAux, const PetscScalar coefficientsAux[], PetscReal t, PetscScalar elemVec[]) in PetscFEIntegrateResidual_Basic() argument
489 …ec_Internal(fe, T[field], 0, basisReal, basisDerReal, e, cgeom, f0, f1, &elemVec[cOffset + fOffset… in PetscFEIntegrateResidual_Basic()
496 …cients_t[], PetscDS dsAux, const PetscScalar coefficientsAux[], PetscReal t, PetscScalar elemVec[]) in PetscFEIntegrateBdResidual_Basic() argument
593 …nternal(fe, Tf[field], face, basisReal, basisDerReal, e, fgeom, f0, f1, &elemVec[cOffset + fOffset… in PetscFEIntegrateBdResidual_Basic()
609 …cients_t[], PetscDS dsAux, const PetscScalar coefficientsAux[], PetscReal t, PetscScalar elemVec[]) in PetscFEIntegrateHybridResidual_Basic() argument
732 …c_Internal(fe, Tf[field], 0, basisReal, basisDerReal, e, fgeom, f0, f1, &elemVec[cOffset + fOffset… in PetscFEIntegrateHybridResidual_Basic()
734 …d_Internal(fe, Tf[field], 0, s, basisReal, basisDerReal, fgeom, f0, f1, &elemVec[cOffset + fOffset… in PetscFEIntegrateHybridResidual_Basic()
/petsc/src/dm/impls/plex/
H A Dplexfem.c4477 PetscScalar *elemVec, *fluxL = NULL, *fluxR = NULL; in DMPlexComputeResidual_Patch_Internal() local
4487 PetscCall(DMGetWorkArray(dm, numCells * totDim, MPIU_SCALAR, &elemVec)); in DMPlexComputeResidual_Patch_Internal()
4488 PetscCall(PetscArrayzero(elemVec, numCells * totDim)); in DMPlexComputeResidual_Patch_Internal()
4523 … PetscCall(PetscFEIntegrateResidual(prob, key, Ne, chunkGeom, u, u_t, probAux, a, t, elemVec)); in DMPlexComputeResidual_Patch_Internal()
4525 …erPlusOffset(u_t, offset * totDim), probAux, &a[offset * totDimAux], t, &elemVec[offset * totDim])… in DMPlexComputeResidual_Patch_Internal()
4543 … if (mesh->printFEM > 1) PetscCall(DMPrintCellVector(cell, name, totDim, &elemVec[cind * totDim])); in DMPlexComputeResidual_Patch_Internal()
4550 … PetscCall(DMPlexVecSetClosure(dm, section, locF, cell, &elemVec[cind * totDim], ADD_ALL_VALUES)); in DMPlexComputeResidual_Patch_Internal()
4590 PetscCall(DMRestoreWorkArray(dm, numCells * totDim, MPIU_SCALAR, &elemVec)); in DMPlexComputeResidual_Patch_Internal()
4927 PetscScalar *u = NULL, *u_t = NULL, *a = NULL, *elemVec = NULL; in DMPlexComputeBdResidualSingleByKey() local
4966 … &u, (locX_t ? (size_t)numFaces * totDim : 0), &u_t, numFaces * totDim, &elemVec, (locA ? (size_t)… in DMPlexComputeBdResidualSingleByKey()
[all …]