Lines Matching refs:locX_t
1350 …InsertTimeDerivativeBoundaryValues(DM dm, PetscBool insertEssential, Vec locX_t, PetscReal time, V… in DMPlexInsertTimeDerivativeBoundaryValues() argument
1354 if (locX_t) PetscValidHeaderSpecific(locX_t, VEC_CLASSID, 3); in DMPlexInsertTimeDerivativeBoundaryValues()
1358 …", (DM, PetscBool, Vec, PetscReal, Vec, Vec, Vec), (dm, insertEssential, locX_t, time, faceGeomFVM… in DMPlexInsertTimeDerivativeBoundaryValues()
3751 PetscErrorCode DMPlexGetCellFields(DM dm, IS cellIS, Vec locX, PeOp Vec locX_t, PeOp Vec locA, Pets… in DMPlexGetCellFields() argument
3763 if (locX_t) PetscValidHeaderSpecific(locX_t, VEC_CLASSID, 4); in DMPlexGetCellFields()
3786 if (locX_t) PetscCall(DMGetWorkArray(dm, numCells * totDim, MPIU_SCALAR, u_t)); in DMPlexGetCellFields()
3799 if (locX_t) { in DMPlexGetCellFields()
3800 PetscCall(DMPlexVecGetClosure(plex, section, locX_t, cell, NULL, &x_t)); in DMPlexGetCellFields()
3802 PetscCall(DMPlexVecRestoreClosure(plex, section, locX_t, cell, NULL, &x_t)); in DMPlexGetCellFields()
3837 PetscErrorCode DMPlexRestoreCellFields(DM dm, IS cellIS, Vec locX, PeOp Vec locX_t, PeOp Vec locA, … in DMPlexRestoreCellFields() argument
3841 if (locX_t) PetscCall(DMRestoreWorkArray(dm, 0, MPIU_SCALAR, u_t)); in DMPlexRestoreCellFields()
3846 static PetscErrorCode DMPlexGetHybridCellFields(DM dm, IS cellIS, Vec locX, Vec locX_t, Vec locA, P… in DMPlexGetHybridCellFields() argument
3859 if (locX_t) PetscValidHeaderSpecific(locX_t, VEC_CLASSID, 4); in DMPlexGetHybridCellFields()
3883 if (locX_t) PetscCall(DMGetWorkArray(dm, numCells * totDim, MPIU_SCALAR, u_t)); in DMPlexGetHybridCellFields()
3904 if (locX_t) PetscCall(DMPlexVecGetClosure(plex, section, locX_t, cell, NULL, &xf_t)); in DMPlexGetHybridCellFields()
3915 if (locX_t) in DMPlexGetHybridCellFields()
3920 if (locX_t) PetscCall(DMPlexVecRestoreClosure(plex, section, locX_t, cell, NULL, &xf_t)); in DMPlexGetHybridCellFields()
3938 if (locX_t) PetscCall(DMPlexVecGetClosure(plex, section, locX_t, ncell, NULL, &xc_t)); in DMPlexGetHybridCellFields()
3949 if (locX_t) in DMPlexGetHybridCellFields()
3954 if (locX_t) PetscCall(DMPlexVecRestoreClosure(plex, section, locX_t, ncell, NULL, &xc_t)); in DMPlexGetHybridCellFields()
4090 PetscErrorCode DMPlexGetFaceFields(DM dm, PetscInt fStart, PetscInt fEnd, Vec locX, PeOp Vec locX_t… in DMPlexGetFaceFields() argument
4103 if (locX_t) PetscValidHeaderSpecific(locX_t, VEC_CLASSID, 5); in DMPlexGetFaceFields()
4254 …toreFaceFields(DM dm, PetscInt fStart, PetscInt fEnd, Vec locX, PeOp Vec locX_t, Vec faceGeometry,… in DMPlexRestoreFaceFields() argument
4389 …ernal(DM dm, PetscSection section, IS cellIS, PetscReal t, Vec locX, Vec locX_t, Vec locF, PetscCt… in DMPlexComputeResidual_Patch_Internal() argument
4398 PetscBool isImplicit = (locX_t || t == PETSC_MIN_REAL) ? PETSC_TRUE : PETSC_FALSE; in DMPlexComputeResidual_Patch_Internal()
4486 PetscCall(DMPlexGetCellFields(dm, chunkIS, locX, locX_t, locA, &u, &u_t, &a)); in DMPlexComputeResidual_Patch_Internal()
4554 if (locX_t) { in DMPlexComputeResidual_Patch_Internal()
4558 PetscCall(VecGetArray(locX_t, &x_t)); in DMPlexComputeResidual_Patch_Internal()
4585 PetscCall(VecRestoreArray(locX_t, &x_t)); in DMPlexComputeResidual_Patch_Internal()
4589 PetscCall(DMPlexRestoreCellFields(dm, chunkIS, locX, locX_t, locA, &u, &u_t, &a)); in DMPlexComputeResidual_Patch_Internal()
4918 …Key(DM dm, PetscWeakForm wf, PetscFormKey key, IS facetIS, Vec locX, Vec locX_t, PetscReal t, DMFi… in DMPlexComputeBdResidualSingleByKey() argument
4966 …PetscCall(PetscMalloc4(numFaces * totDim, &u, (locX_t ? (size_t)numFaces * totDim : 0), &u_t, numF… in DMPlexComputeBdResidualSingleByKey()
4987 if (locX_t) { in DMPlexComputeBdResidualSingleByKey()
4988 PetscCall(DMPlexVecGetClosure(plex, section, locX_t, support[0], NULL, &x)); in DMPlexComputeBdResidualSingleByKey()
4990 PetscCall(DMPlexVecRestoreClosure(plex, section, locX_t, support[0], NULL, &x)); in DMPlexComputeBdResidualSingleByKey()
5085 …dResidualSingle(DM dm, PetscWeakForm wf, PetscFormKey key, Vec locX, Vec locX_t, PetscReal t, Vec … 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 …lByKey(DM dm, PetscFormKey key, IS cellIS, PetscReal time, Vec locX, Vec locX_t, PetscReal t, Vec … in DMPlexComputeResidualByKey() argument
5187 PetscBool isImplicit = (locX_t || time == PETSC_MIN_REAL) ? PETSC_TRUE : PETSC_FALSE; 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()
5414 if (locX_t) { in DMPlexComputeResidualByKey()
5418 PetscCall(VecGetArray(locX_t, &x_t)); in DMPlexComputeResidualByKey()
5445 PetscCall(VecRestoreArray(locX_t, &x_t)); 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 …yKey(DM dm, PetscFormKey key[], IS cellIS, PetscReal time, Vec locX, Vec locX_t, PetscReal t, Vec … 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 …ues, const PetscInt values[], PetscInt fieldI, IS facetIS, Vec locX, Vec locX_t, PetscReal t, DMFi… in DMPlexComputeBdJacobianSingleByLabel() argument
5969 …PetscCall(PetscMalloc5(numFaces * totDim, &u, (locX_t ? (size_t)numFaces * totDim : 0), &u_t, (has… in DMPlexComputeBdJacobianSingleByLabel()
5990 if (locX_t) { in DMPlexComputeBdJacobianSingleByLabel()
5991 PetscCall(DMPlexVecGetClosure(plex, section, locX_t, support[0], NULL, &x)); in DMPlexComputeBdJacobianSingleByLabel()
5993 PetscCall(DMPlexVecRestoreClosure(plex, section, locX_t, support[0], NULL, &x)); in DMPlexComputeBdJacobianSingleByLabel()
6097 …scInt numValues, const PetscInt values[], PetscInt fieldI, Vec locX, Vec locX_t, PetscReal t, Pets… in DMPlexComputeBdJacobianSingle() argument
6109 …anSingleByLabel(dm, wf, label, numValues, values, fieldI, facetIS, locX, locX_t, t, coordField, X_… in DMPlexComputeBdJacobianSingle()
6114 static PetscErrorCode DMPlexComputeBdJacobian_Internal(DM dm, Vec locX, Vec locX_t, PetscReal t, Pe… in DMPlexComputeBdJacobian_Internal() argument
6143 …anSingleByLabel(dm, wf, label, numValues, values, fieldI, facetIS, locX, locX_t, t, coordField, X_… in DMPlexComputeBdJacobian_Internal()
6172 …scFormKey key, IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Mat Jac, Mat JacP… in DMPlexComputeJacobianByKey() argument
6219 …PetscCall(PetscMalloc5(numCells * totDim, &u, (locX_t ? (size_t)numCells * totDim : 0), &u_t, (has… in DMPlexComputeJacobianByKey()
6230 if (locX_t) { in DMPlexComputeJacobianByKey()
6231 PetscCall(DMPlexVecGetClosure(dm, section, locX_t, cell, NULL, &x_t)); in DMPlexComputeJacobianByKey()
6233 PetscCall(DMPlexVecRestoreClosure(dm, section, locX_t, cell, NULL, &x_t)); in DMPlexComputeJacobianByKey()
6367 PetscCall(DMPlexComputeBdJacobian_Internal(dm, locX, locX_t, t, X_tShift, Jac, JacP, ctx)); in DMPlexComputeJacobianByKey()
6385 …scFormKey key, IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Mat Jac, Mat JacP… in DMPlexComputeJacobianByKeyGeneral() argument
6442 …PetscCall(PetscMalloc5(numCells * totDim, &u, (locX_t ? (size_t)numCells * totDim : 0), &u_t, (has… in DMPlexComputeJacobianByKeyGeneral()
6453 if (locX_t) { in DMPlexComputeJacobianByKeyGeneral()
6454 PetscCall(DMPlexVecGetClosure(dmr, rsection, locX_t, cell, NULL, &x_t)); in DMPlexComputeJacobianByKeyGeneral()
6456 PetscCall(DMPlexVecRestoreClosure(dmr, rsection, locX_t, cell, NULL, &x_t)); in DMPlexComputeJacobianByKeyGeneral()
6590 PetscCall(DMPlexComputeBdJacobian_Internal(dmr, locX, locX_t, t, X_tShift, Jac, JacP, ctx)); in DMPlexComputeJacobianByKeyGeneral()
6631 …FormKey key[], IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Mat Jac, Mat JacP… 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 …scFormKey key, IS cellIS, PetscReal t, PetscReal X_tShift, Vec locX, Vec locX_t, Vec locY, Vec loc… in DMPlexComputeJacobianActionByKey() argument
7041 …PetscCall(PetscMalloc6(numCells * totDim, &u, (locX_t ? (size_t)numCells * totDim : 0), &u_t, numC… in DMPlexComputeJacobianActionByKey()
7053 if (locX_t) { in DMPlexComputeJacobianActionByKey()
7054 PetscCall(DMPlexVecGetClosure(plex, section, locX_t, cell, NULL, &x_t)); in DMPlexComputeJacobianActionByKey()
7056 PetscCall(DMPlexVecRestoreClosure(plex, section, locX_t, cell, NULL, &x_t)); in DMPlexComputeJacobianActionByKey()