Lines Matching refs:packer
78 DM packer; in main() local
91 PetscCall(DMCompositeCreate(PETSC_COMM_WORLD, &packer)); in main()
94 PetscCall(DMCompositeAddDM(packer, red)); in main()
101 PetscCall(DMCompositeAddDM(packer, (DM)da)); in main()
102 PetscCall(DMSetApplicationContext(packer, &user)); in main()
104 packer->ops->creatematrix = DMCreateMatrix_MF; in main()
108 PetscCall(SNESSetDM(snes, packer)); in main()
126 PetscCall(DMDestroy(&packer)); in main()
153 DM packer, red, da; in ComputeFunction() local
156 PetscCall(VecGetDM(U, &packer)); in ComputeFunction()
157 PetscCall(DMCompositeGetEntries(packer, &red, &da)); in ComputeFunction()
158 PetscCall(DMCompositeGetLocalVectors(packer, &vw, &vu_lambda)); in ComputeFunction()
159 PetscCall(DMCompositeScatter(packer, U, vw, vu_lambda)); in ComputeFunction()
160 PetscCall(DMCompositeGetAccess(packer, FU, &vfw, &vfu_lambda)); in ComputeFunction()
196 PetscCall(DMCompositeRestoreLocalVectors(packer, &vw, &vu_lambda)); in ComputeFunction()
197 PetscCall(DMCompositeRestoreAccess(packer, FU, &vfw, &vfu_lambda)); in ComputeFunction()
214 PetscErrorCode ExactSolution(DM packer, Vec U) in ExactSolution() argument
223 PetscCall(DMCompositeGetEntries(packer, &m, &da)); in ExactSolution()
233 PetscCall(DMCompositeGetAccess(packer, U, &w, &u_global, 0)); in ExactSolution()
237 PetscCall(DMCompositeRestoreAccess(packer, U, &w, &u_global, 0)); in ExactSolution()
247 DM packer; in Monitor() local
252 PetscCall(SNESGetDM(snes, &packer)); in Monitor()
253 PetscCall(DMGetApplicationContext(packer, &user)); in Monitor()
255 PetscCall(DMCompositeGetAccess(packer, U, &w, &u_lambda)); in Monitor()
257 PetscCall(DMCompositeRestoreAccess(packer, U, &w, &u_lambda)); in Monitor()
260 PetscCall(DMCompositeGetAccess(packer, F, &w, &u_lambda)); in Monitor()
262 PetscCall(DMCompositeRestoreAccess(packer, U, &w, &u_lambda)); in Monitor()
264 PetscCall(DMCompositeGetEntries(packer, &m, &da)); in Monitor()
267 PetscCall(ExactSolution(packer, Uexact)); in Monitor()
269 PetscCall(DMCompositeGetAccess(packer, Uexact, &dw, &u_lambda)); in Monitor()
274 PetscCall(DMCompositeRestoreAccess(packer, Uexact, &dw, &u_lambda)); in Monitor()
279 PetscErrorCode DMCreateMatrix_MF(DM packer, Mat *A) in DMCreateMatrix_MF() argument
285 PetscCall(DMGetGlobalVector(packer, &t)); in DMCreateMatrix_MF()
287 PetscCall(DMRestoreGlobalVector(packer, &t)); in DMCreateMatrix_MF()
290 PetscCall(MatSetDM(*A, packer)); in DMCreateMatrix_MF()