Lines Matching refs:locX

915 …)(PetscInt, PetscReal, const PetscReal[], PetscInt, PetscScalar *, void *), PetscCtx ctx, Vec locX)  in DMPlexInsertBoundaryValuesEssential()  argument
926 …tFunctionLabelLocal(dm, time, label, numids, ids, Nc, comps, funcs, ctxs, INSERT_BC_VALUES, locX)); in DMPlexInsertBoundaryValuesEssential()
954 …etscReal, const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscCtx ctx, Vec locX) in DMPlexInsertBoundaryValuesEssentialField() argument
965 …jectFieldLabelLocal(dm, time, label, numids, ids, Nc, comps, locU, funcs, INSERT_BC_VALUES, locX)); in DMPlexInsertBoundaryValuesEssentialField()
995 …scReal[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscCtx ctx, Vec locX) in DMPlexInsertBoundaryValuesEssentialBdField() argument
1006 …ctBdFieldLabelLocal(dm, time, label, numids, ids, Nc, comps, locU, funcs, INSERT_BC_VALUES, locX)); in DMPlexInsertBoundaryValuesEssentialBdField()
1039 …etscReal *, const PetscReal *, const PetscScalar *, PetscScalar *, void *), PetscCtx ctx, Vec locX) in DMPlexInsertBoundaryValuesRiemann() argument
1072 PetscCall(VecGetArray(locX, &x)); in DMPlexInsertBoundaryValuesRiemann()
1123 PetscCall(VecRestoreArray(locX, &x)); in DMPlexInsertBoundaryValuesRiemann()
1141 PetscErrorCode DMPlexInsertBoundaryValues_Plex(DM dm, PetscBool insertEssential, Vec locX, PetscRea… in DMPlexInsertBoundaryValues_Plex() argument
1150 PetscCall(PetscObjectQuery((PetscObject)locX, "__Vec_bc_zero__", &isZero)); in DMPlexInsertBoundaryValues_Plex()
1178 …lexInsertBoundaryValuesEssential(dm, time, field, Nc, comps, label, numids, ids, func, ctx, locX)); in DMPlexInsertBoundaryValues_Plex()
1185 …exInsertBoundaryValuesEssentialField(dm, time, locX, field, Nc, comps, label, numids, ids, func, c… in DMPlexInsertBoundaryValues_Plex()
1196 …, time, faceGeomFVM, cellGeomFVM, gradFVM, field, Nc, comps, label, numids, ids, func, ctx, locX)); in DMPlexInsertBoundaryValues_Plex()
1203 …rtTimeDerivativeBoundaryValues_Plex(DM dm, PetscBool insertEssential, Vec locX, PetscReal time, Ve… in DMPlexInsertTimeDerivativeBoundaryValues_Plex() argument
1210 if (!locX) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexInsertTimeDerivativeBoundaryValues_Plex()
1213 PetscCall(PetscObjectQuery((PetscObject)locX, "__Vec_bc_zero__", &isZero)); in DMPlexInsertTimeDerivativeBoundaryValues_Plex()
1240 …xInsertBoundaryValuesEssential(dm, time, field, Nc, comps, label, numids, ids, func_t, ctx, locX)); in DMPlexInsertTimeDerivativeBoundaryValues_Plex()
1247 …xInsertBoundaryValuesEssentialField(dm, time, locX, field, Nc, comps, label, numids, ids, func_t, … in DMPlexInsertTimeDerivativeBoundaryValues_Plex()
1320 PetscErrorCode DMPlexInsertBoundaryValues(DM dm, PetscBool insertEssential, Vec locX, PetscReal tim… in DMPlexInsertBoundaryValues() argument
1324 PetscValidHeaderSpecific(locX, VEC_CLASSID, 3); in DMPlexInsertBoundaryValues()
1328 …C", (DM, PetscBool, Vec, PetscReal, Vec, Vec, Vec), (dm, insertEssential, locX, time, faceGeomFVM,… in DMPlexInsertBoundaryValues()
1389 PetscErrorCode DMPlexInsertBoundaryValuesFVM(DM dm, PetscFV fv, Vec locX, PetscReal time, Vec *locG… in DMPlexInsertBoundaryValuesFVM() argument
1397 PetscValidHeaderSpecific(locX, VEC_CLASSID, 3); in DMPlexInsertBoundaryValuesFVM()
1411 …ReconstructGradients_Internal(dm, fv, fStart, fEnd, faceGeometryFVM, cellGeometryFVM, locX, grad)); in DMPlexInsertBoundaryValuesFVM()
1418 …PetscCall(DMPlexInsertBoundaryValues(dm, PETSC_FALSE, locX, time, faceGeometryFVM, cellGeometryFVM… in DMPlexInsertBoundaryValuesFVM()
2146 PetscErrorCode DMPlexComputeClementInterpolant(DM dm, Vec locX, Vec locC) in DMPlexComputeClementInterpolant() argument
2207 PetscCall(DMPlexVecGetClosure(dm, NULL, locX, cell, NULL, &x)); in DMPlexComputeClementInterpolant()
2239 PetscCall(DMPlexVecRestoreClosure(dm, NULL, locX, cell, NULL, &x)); in DMPlexComputeClementInterpolant()
2278 PetscErrorCode DMPlexComputeGradientClementInterpolant(DM dm, Vec locX, Vec locC) in DMPlexComputeGradientClementInterpolant() argument
2339 PetscCall(DMPlexVecGetClosure(dm, NULL, locX, cell, NULL, &x)); in DMPlexComputeGradientClementInterpolant()
2375 PetscCall(DMPlexVecRestoreClosure(dm, NULL, locX, cell, NULL, &x)); in DMPlexComputeGradientClementInterpolant()
2401 PetscErrorCode DMPlexComputeIntegral_Internal(DM dm, Vec locX, PetscInt cStart, PetscInt cEnd, Pets… in DMPlexComputeIntegral_Internal() argument
2492 …ReconstructGradients_Internal(dm, fv, fStart, fEnd, faceGeometryFVM, cellGeometryFVM, locX, grad)); in DMPlexComputeIntegral_Internal()
2499 …PetscCall(DMPlexInsertBoundaryValues(dm, PETSC_FALSE, locX, 0.0, faceGeometryFVM, cellGeometryFVM,… in DMPlexComputeIntegral_Internal()
2507 PetscCall(DMPlexVecGetClosure(dm, section, locX, c, NULL, &x)); in DMPlexComputeIntegral_Internal()
2509 PetscCall(DMPlexVecRestoreClosure(dm, section, locX, c, NULL, &x)); in DMPlexComputeIntegral_Internal()
2605 Vec locX; in DMPlexComputeIntegralFEM() local
2619 PetscCall(DMGetLocalVector(dm, &locX)); in DMPlexComputeIntegralFEM()
2620 PetscCall(DMPlexInsertBoundaryValues(dm, PETSC_TRUE, locX, 0.0, NULL, NULL, NULL)); in DMPlexComputeIntegralFEM()
2621 PetscCall(DMGlobalToLocalBegin(dm, X, INSERT_VALUES, locX)); in DMPlexComputeIntegralFEM()
2622 PetscCall(DMGlobalToLocalEnd(dm, X, INSERT_VALUES, locX)); in DMPlexComputeIntegralFEM()
2623 PetscCall(DMPlexComputeIntegral_Internal(dm, locX, cStart, cEnd, cintegral, ctx)); in DMPlexComputeIntegralFEM()
2624 PetscCall(DMRestoreLocalVector(dm, &locX)); in DMPlexComputeIntegralFEM()
2667 Vec locX; in DMPlexComputeCellwiseIntegralFEM() local
2681 PetscCall(DMGetLocalVector(dm, &locX)); in DMPlexComputeCellwiseIntegralFEM()
2682 PetscCall(DMPlexInsertBoundaryValues(dm, PETSC_TRUE, locX, 0.0, NULL, NULL, NULL)); in DMPlexComputeCellwiseIntegralFEM()
2683 PetscCall(DMGlobalToLocalBegin(dm, X, INSERT_VALUES, locX)); in DMPlexComputeCellwiseIntegralFEM()
2684 PetscCall(DMGlobalToLocalEnd(dm, X, INSERT_VALUES, locX)); in DMPlexComputeCellwiseIntegralFEM()
2685 PetscCall(DMPlexComputeIntegral_Internal(dm, locX, cStart, cEnd, cintegral, ctx)); in DMPlexComputeCellwiseIntegralFEM()
2686 PetscCall(DMRestoreLocalVector(dm, &locX)); in DMPlexComputeCellwiseIntegralFEM()
2713 static PetscErrorCode DMPlexComputeBdIntegral_Internal(DM dm, Vec locX, IS pointIS, void (**funcs)(… in DMPlexComputeBdIntegral_Internal() argument
2779 PetscCall(DMPlexVecGetClosure(plex, section, locX, support[0], NULL, &x)); in DMPlexComputeBdIntegral_Internal()
2781 PetscCall(DMPlexVecRestoreClosure(plex, section, locX, support[0], NULL, &x)); in DMPlexComputeBdIntegral_Internal()
2861 Vec locX; in DMPlexComputeBdIntegral() local
2880 PetscCall(DMGetLocalVector(dm, &locX)); in DMPlexComputeBdIntegral()
2881 PetscCall(DMPlexInsertBoundaryValues(dm, PETSC_TRUE, locX, 0.0, NULL, NULL, NULL)); in DMPlexComputeBdIntegral()
2882 PetscCall(DMGlobalToLocalBegin(dm, X, INSERT_VALUES, locX)); in DMPlexComputeBdIntegral()
2883 PetscCall(DMGlobalToLocalEnd(dm, X, INSERT_VALUES, locX)); in DMPlexComputeBdIntegral()
2903 PetscCall(DMPlexComputeBdIntegral_Internal(dm, locX, pointIS, funcs, fintegral, ctx)); in DMPlexComputeBdIntegral()
2910 PetscCall(DMRestoreLocalVector(dm, &locX)); in DMPlexComputeBdIntegral()
3751 PetscErrorCode DMPlexGetCellFields(DM dm, IS cellIS, Vec locX, PeOp Vec locX_t, PeOp Vec locA, Pets… in DMPlexGetCellFields() argument
3762 PetscValidHeaderSpecific(locX, VEC_CLASSID, 3); in DMPlexGetCellFields()
3796 PetscCall(DMPlexVecGetClosure(plex, section, locX, cell, NULL, &x)); in DMPlexGetCellFields()
3798 PetscCall(DMPlexVecRestoreClosure(plex, section, locX, cell, NULL, &x)); in DMPlexGetCellFields()
3837 PetscErrorCode DMPlexRestoreCellFields(DM dm, IS cellIS, Vec locX, PeOp Vec locX_t, PeOp Vec locA, … in DMPlexRestoreCellFields() argument
3846 static PetscErrorCode DMPlexGetHybridCellFields(DM dm, IS cellIS, Vec locX, Vec locX_t, Vec locA, P… in DMPlexGetHybridCellFields() argument
3858 PetscValidHeaderSpecific(locX, VEC_CLASSID, 3); in DMPlexGetHybridCellFields()
3903 PetscCall(DMPlexVecGetClosure(plex, section, locX, cell, &Nxf, &xf)); in DMPlexGetHybridCellFields()
3919 PetscCall(DMPlexVecRestoreClosure(plex, section, locX, cell, &Nxf, &xf)); in DMPlexGetHybridCellFields()
3937 PetscCall(DMPlexVecGetClosure(plex, section, locX, ncell, &Nxc, &xc)); in DMPlexGetHybridCellFields()
3953 PetscCall(DMPlexVecRestoreClosure(plex, section, locX, ncell, &Nxc, &xc)); in DMPlexGetHybridCellFields()
3996 static PetscErrorCode DMPlexGetHybridFields(DM dm, DM dmX[], PetscDS dsX[], IS cellIS, Vec locX[], … in DMPlexGetHybridFields() argument
4005 PetscAssertPointer(locX, 5); in DMPlexGetHybridFields()
4006 if (!locX[0] || !locX[1]) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexGetHybridFields()
4016 PetscValidHeaderSpecific(locX[s], VEC_CLASSID, 5); in DMPlexGetHybridFields()
4048 …PetscCall(DMPlexVecGetOrientedClosure(plexX[s], sectionX[s], PETSC_FALSE, locX[s], subpoint, ornt[… in DMPlexGetHybridFields()
4051 PetscCall(DMPlexVecRestoreClosure(plexX[s], sectionX[s], locX[s], subpoint, &Nx, &closure)); in DMPlexGetHybridFields()
4059 static PetscErrorCode DMPlexRestoreHybridFields(DM dm, DM dmX[], PetscDS dsX[], IS cellIS, Vec locX in DMPlexRestoreHybridFields() argument
4062 if (!locX[0] || !locX[1]) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexRestoreHybridFields()
4090 PetscErrorCode DMPlexGetFaceFields(DM dm, PetscInt fStart, PetscInt fEnd, Vec locX, PeOp Vec locX_t… in DMPlexGetFaceFields() argument
4102 PetscValidHeaderSpecific(locX, VEC_CLASSID, 4); in DMPlexGetFaceFields()
4130 PetscCall(VecGetArrayRead(locX, &x)); in DMPlexGetFaceFields()
4168 PetscCall(DMPlexVecGetClosure(dm, section, locX, cells[0], &ldof, &xL)); in DMPlexGetFaceFields()
4169 PetscCall(DMPlexVecGetClosure(dm, section, locX, cells[1], &rdof, &xR)); in DMPlexGetFaceFields()
4192 PetscCall(DMPlexVecRestoreClosure(dm, section, locX, cells[0], &ldof, &xL)); in DMPlexGetFaceFields()
4193 PetscCall(DMPlexVecRestoreClosure(dm, section, locX, cells[1], &rdof, &xR)); in DMPlexGetFaceFields()
4224 PetscCall(VecRestoreArrayRead(locX, &x)); in DMPlexGetFaceFields()
4254 PetscErrorCode DMPlexRestoreFaceFields(DM dm, PetscInt fStart, PetscInt fEnd, Vec locX, PeOp Vec lo… in DMPlexRestoreFaceFields() argument
4389 …l_Patch_Internal(DM dm, PetscSection section, IS cellIS, PetscReal t, Vec locX, Vec locX_t, Vec lo… in DMPlexComputeResidual_Patch_Internal() argument
4486 PetscCall(DMPlexGetCellFields(dm, chunkIS, locX, locX_t, locA, &u, &u_t, &a)); in DMPlexComputeResidual_Patch_Internal()
4589 PetscCall(DMPlexRestoreCellFields(dm, chunkIS, locX, locX_t, locA, &u, &u_t, &a)); in DMPlexComputeResidual_Patch_Internal()
4918 …ualSingleByKey(DM dm, PetscWeakForm wf, PetscFormKey key, IS facetIS, Vec locX, Vec locX_t, PetscR… in DMPlexComputeBdResidualSingleByKey() argument
4984 PetscCall(DMPlexVecGetClosure(plex, section, locX, support[0], NULL, &x)); in DMPlexComputeBdResidualSingleByKey()
4986 PetscCall(DMPlexVecRestoreClosure(plex, section, locX, support[0], NULL, &x)); in DMPlexComputeBdResidualSingleByKey()
5085 PetscErrorCode DMPlexComputeBdResidualSingle(DM dm, PetscWeakForm wf, PetscFormKey key, Vec locX, V… in DMPlexComputeBdResidualSingle() argument
5097 …PetscCall(DMPlexComputeBdResidualSingleByKey(dm, wf, key, facetIS, locX, locX_t, t, coordField, lo… in DMPlexComputeBdResidualSingle()
5102 static PetscErrorCode DMPlexComputeBdResidual_Internal(DM dm, Vec locX, Vec locX_t, PetscReal t, Ve… in DMPlexComputeBdResidual_Internal() argument
5146 …PetscCall(DMPlexComputeBdResidualSingleByKey(dm, wf, key, facetIS, locX, locX_t, t, coordField, lo… in DMPlexComputeBdResidual_Internal()
5175 …puteResidualByKey(DM dm, PetscFormKey key, IS cellIS, PetscReal time, Vec locX, Vec locX_t, PetscR… in DMPlexComputeResidualByKey() argument
5268 PetscCall(DMPlexInsertBoundaryValuesFVM(dm, fvm, locX, time, &locGrad)); in DMPlexComputeResidualByKey()
5289 PetscCall(DMPlexGetCellFields(dm, chunkIS, locX, locX_t, locA, &u, &u_t, &a)); in DMPlexComputeResidualByKey()
5294 …PetscCall(DMPlexGetFaceFields(dm, fS, fE, locX, locX_t, faceGeometryFVM, cellGeometryFVM, locGrad,… in DMPlexComputeResidualByKey()
5449 PetscCall(DMPlexRestoreCellFields(dm, chunkIS, locX, locX_t, locA, &u, &u_t, &a)); in DMPlexComputeResidualByKey()
5453 …PetscCall(DMPlexRestoreFaceFields(dm, fS, fE, locX, locX_t, faceGeometryFVM, cellGeometryFVM, locG… in DMPlexComputeResidualByKey()
5464 PetscCall(DMPlexComputeBdResidual_Internal(dm, locX, locX_t, t, locF, ctx)); in DMPlexComputeResidualByKey()
5555 …dualHybridByKey(DM dm, PetscFormKey key[], IS cellIS, PetscReal time, Vec locX, Vec locX_t, PetscR… in DMPlexComputeResidualHybridByKey() argument
5710 PetscCall(DMPlexGetHybridCellFields(dm, cellIS, locX, locX_t, locA[2], &u, &u_t, &a[2])); in DMPlexComputeResidualHybridByKey()
5835 PetscCall(DMPlexRestoreCellFields(dm, cellIS, locX, locX_t, locA[2], &u, &u_t, &a[2])); in DMPlexComputeResidualHybridByKey()
5906 …cInt numValues, const PetscInt values[], PetscInt fieldI, IS facetIS, Vec locX, Vec locX_t, PetscR… in DMPlexComputeBdJacobianSingleByLabel() argument
5987 PetscCall(DMPlexVecGetClosure(plex, section, locX, support[0], NULL, &x)); in DMPlexComputeBdJacobianSingleByLabel()
5989 PetscCall(DMPlexVecRestoreClosure(plex, section, locX, support[0], NULL, &x)); in DMPlexComputeBdJacobianSingleByLabel()
6097 … label, PetscInt numValues, const PetscInt values[], PetscInt fieldI, Vec locX, Vec locX_t, PetscR… in DMPlexComputeBdJacobianSingle() argument
6109 …dJacobianSingleByLabel(dm, wf, label, numValues, values, fieldI, facetIS, locX, locX_t, t, coordFi… in DMPlexComputeBdJacobianSingle()
6114 static PetscErrorCode DMPlexComputeBdJacobian_Internal(DM dm, Vec locX, Vec locX_t, PetscReal t, Pe… in DMPlexComputeBdJacobian_Internal() argument
6143 …dJacobianSingleByLabel(dm, wf, label, numValues, values, fieldI, facetIS, locX, locX_t, t, coordFi… in DMPlexComputeBdJacobian_Internal()
6172 …(DM dm, PetscFormKey key, IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Mat Ja… in DMPlexComputeJacobianByKey() argument
6227 PetscCall(DMPlexVecGetClosure(dm, section, locX, cell, NULL, &x)); in DMPlexComputeJacobianByKey()
6229 PetscCall(DMPlexVecRestoreClosure(dm, section, locX, cell, NULL, &x)); in DMPlexComputeJacobianByKey()
6367 PetscCall(DMPlexComputeBdJacobian_Internal(dm, locX, locX_t, t, X_tShift, Jac, JacP, ctx)); in DMPlexComputeJacobianByKey()
6385 …DM dmc, PetscFormKey key, IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Mat Ja… in DMPlexComputeJacobianByKeyGeneral() argument
6450 PetscCall(DMPlexVecGetClosure(dmr, rsection, locX, cell, NULL, &x)); in DMPlexComputeJacobianByKeyGeneral()
6452 PetscCall(DMPlexVecRestoreClosure(dmr, rsection, locX, cell, NULL, &x)); in DMPlexComputeJacobianByKeyGeneral()
6590 PetscCall(DMPlexComputeBdJacobian_Internal(dmr, locX, locX_t, t, X_tShift, Jac, JacP, ctx)); in DMPlexComputeJacobianByKeyGeneral()
6631 …M dm, PetscFormKey key[], IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Mat Ja… in DMPlexComputeJacobianHybridByKey() argument
6781 PetscCall(DMPlexGetHybridCellFields(dm, cellIS, locX, locX_t, locA[2], &u, &u_t, &a[2])); in DMPlexComputeJacobianHybridByKey()
6947 PetscCall(DMPlexRestoreCellFields(dm, cellIS, locX, locX_t, locA[2], &u, &u_t, &a[2])); in DMPlexComputeJacobianHybridByKey()
7002 …(DM dm, PetscFormKey key, IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Vec lo… in DMPlexComputeJacobianActionByKey() argument
7050 PetscCall(DMPlexVecGetClosure(plex, section, locX, cell, NULL, &x)); in DMPlexComputeJacobianActionByKey()
7052 PetscCall(DMPlexVecRestoreClosure(plex, section, locX, cell, NULL, &x)); in DMPlexComputeJacobianActionByKey()