| /petsc/src/ts/utils/libceed/ |
| H A D | dmplextsceed.c | 10 Vec locF; in DMPlexTSComputeRHSFunctionFVMCEED() local 21 PetscCall(DMGetLocalVector(dm, &locF)); in DMPlexTSComputeRHSFunctionFVMCEED() 22 PetscCall(VecZeroEntries(locF)); in DMPlexTSComputeRHSFunctionFVMCEED() 24 PetscCall(VecGetCeedVector(locF, ceed, &clocF)); in DMPlexTSComputeRHSFunctionFVMCEED() 27 PetscCall(VecRestoreCeedVector(locF, &clocF)); in DMPlexTSComputeRHSFunctionFVMCEED() 28 PetscCall(DMLocalToGlobalBegin(dm, locF, ADD_VALUES, F)); in DMPlexTSComputeRHSFunctionFVMCEED() 29 PetscCall(DMLocalToGlobalEnd(dm, locF, ADD_VALUES, F)); in DMPlexTSComputeRHSFunctionFVMCEED() 30 PetscCall(DMRestoreLocalVector(dm, &locF)); in DMPlexTSComputeRHSFunctionFVMCEED()
|
| /petsc/src/snes/utils/libceed/ |
| H A D | dmplexsnesceed.c | 9 PetscErrorCode DMPlexSNESComputeResidualCEED(DM dm, Vec locX, Vec locF, PetscCtx ctx) in DMPlexSNESComputeResidualCEED() argument 21 PetscCall(VecGetCeedVector(locF, ceed, &clocF)); in DMPlexSNESComputeResidualCEED() 24 PetscCall(VecRestoreCeedVector(locF, &clocF)); in DMPlexSNESComputeResidualCEED() 36 PetscCall(VecDuplicate(locF, &locFbc)); in DMPlexSNESComputeResidualCEED() 37 PetscCall(VecCopy(locF, locFbc)); in DMPlexSNESComputeResidualCEED()
|
| /petsc/src/ts/utils/ |
| H A D | dmlocalts.c | 50 Vec locX, locX_t, locF; in TSComputeIFunction_DMLocal() local 61 PetscCall(DMGetLocalVector(dm, &locF)); in TSComputeIFunction_DMLocal() 69 PetscCall(VecZeroEntries(locF)); in TSComputeIFunction_DMLocal() 71 …PetscCall((*dmlocalts->ifunctionlocal)(dm, time, locX, locX_t, locF, dmlocalts->ifunctionlocalctx)… in TSComputeIFunction_DMLocal() 74 PetscCall(DMLocalToGlobalBegin(dm, locF, ADD_VALUES, F)); in TSComputeIFunction_DMLocal() 75 PetscCall(DMLocalToGlobalEnd(dm, locF, ADD_VALUES, F)); in TSComputeIFunction_DMLocal() 78 PetscCall(DMRestoreLocalVector(dm, &locF)); in TSComputeIFunction_DMLocal() 92 Vec locX, locF; in TSComputeRHSFunction_DMLocal() local 101 PetscCall(DMGetLocalVector(dm, &locF)); in TSComputeRHSFunction_DMLocal() 106 PetscCall(VecZeroEntries(locF)); in TSComputeRHSFunction_DMLocal() [all …]
|
| H A D | dmplexts.c | 51 Vec locF; in DMPlexTSComputeRHSFunctionFVM() local 62 PetscCall(DMGetLocalVector(plex, &locF)); in DMPlexTSComputeRHSFunctionFVM() 63 PetscCall(VecZeroEntries(locF)); in DMPlexTSComputeRHSFunctionFVM() 64 PetscCall(DMPlexComputeResidualByKey(plex, key, cellIS, time, locX, NULL, time, locF, ctx)); in DMPlexTSComputeRHSFunctionFVM() 65 PetscCall(DMLocalToGlobalBegin(plex, locF, ADD_VALUES, F)); in DMPlexTSComputeRHSFunctionFVM() 66 PetscCall(DMLocalToGlobalEnd(plex, locF, ADD_VALUES, F)); in DMPlexTSComputeRHSFunctionFVM() 67 PetscCall(DMRestoreLocalVector(plex, &locF)); in DMPlexTSComputeRHSFunctionFVM() 134 PetscErrorCode DMPlexTSComputeIFunctionFEM(DM dm, PetscReal time, Vec locX, Vec locX_t, Vec locF, P… in DMPlexTSComputeIFunctionFEM() argument 164 PetscCall(DMPlexComputeResidualByKey(plex, key, cellIS, time, locX, locX_t, time, locF, ctx)); in DMPlexTSComputeIFunctionFEM()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex5.c | 1130 Vec locX, locF, locW; in TestAssembly() local 1152 PetscCall(DMGetLocalVector(dm, &locF)); in TestAssembly() 1153 PetscCall(PetscObjectSetName((PetscObject)locF, "Local Residual")); in TestAssembly() 1228 PetscCall(VecSet(locF, 0.)); in TestAssembly() 1229 …PetscCall(DMPlexComputeResidualHybridByKey(dm, keys, cohesiveCells, 0.0, locX, NULL, 0.0, locF, us… in TestAssembly() 1230 PetscCall(VecViewFromOptions(locF, NULL, "-local_residual_view")); in TestAssembly() 1238 PetscCall(DMRestoreLocalVector(dm, &locF)); in TestAssembly()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfem.c | 4389 …(DM dm, PetscSection section, IS cellIS, PetscReal t, Vec locX, Vec locX_t, Vec locF, PetscCtx ctx) in DMPlexComputeResidual_Patch_Internal() argument 4550 … PetscCall(DMPlexVecSetClosure(dm, section, locF, cell, &elemVec[cind * totDim], ADD_ALL_VALUES)); in DMPlexComputeResidual_Patch_Internal() 4557 PetscCall(VecGetArray(locF, &fa)); in DMPlexComputeResidual_Patch_Internal() 4586 PetscCall(VecRestoreArray(locF, &fa)); in DMPlexComputeResidual_Patch_Internal() 4918 … wf, PetscFormKey key, IS facetIS, Vec locX, Vec locX_t, PetscReal t, DMField coordField, Vec locF) in DMPlexComputeBdResidualSingleByKey() argument 5034 …PetscCall(DMPlexVecSetClosure(plex, NULL, locF, support[0], &elemVec[face * totDim], ADD_ALL_VALUE… in DMPlexComputeBdResidualSingleByKey() 5050 PetscCall(VecDuplicate(locF, &locFbc)); in DMPlexComputeBdResidualSingleByKey() 5051 PetscCall(VecCopy(locF, locFbc)); in DMPlexComputeBdResidualSingleByKey() 5085 …idualSingle(DM dm, PetscWeakForm wf, PetscFormKey key, Vec locX, Vec locX_t, PetscReal t, Vec locF) in DMPlexComputeBdResidualSingle() argument 5097 …cCall(DMPlexComputeBdResidualSingleByKey(dm, wf, key, facetIS, locX, locX_t, t, coordField, locF)); in DMPlexComputeBdResidualSingle() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex30.c | 1425 …lexTSComputeIFunctionFEM_Private(DM dm, PetscReal time, Vec locX, Vec locX_t, Vec locF, void *user) in DMPlexTSComputeIFunctionFEM_Private() argument 1445 PetscCall(DMPlexTSComputeIFunctionFEM(dm, time, locX, work, locF, user)); in DMPlexTSComputeIFunctionFEM_Private() 1447 PetscCall(VecAXPY(locF, 1.0, work)); in DMPlexTSComputeIFunctionFEM_Private() 1451 PetscCall(DMPlexTSComputeIFunctionFEM(dm, time, locX, locX_t, locF, user)); in DMPlexTSComputeIFunctionFEM_Private()
|