Home
last modified time | relevance | path

Searched refs:VecRestoreArray (Results 1 – 25 of 481) sorted by relevance

12345678910>>...20

/petsc/src/vec/is/sf/tests/
H A Dex3.c69 PetscCall(VecRestoreArray(y, &leafdata)); in main()
86 PetscCall(VecRestoreArray(y2, &leafupdate)); in main()
89 PetscCall(VecRestoreArray(y, &leafdata)); in main()
92 PetscCall(VecRestoreArray(x, &rootdata)); in main()
124 PetscCall(VecRestoreArray(y, &leafdata)); in main()
146 PetscCall(VecRestoreArray(y2, &leafupdate)); in main()
149 PetscCall(VecRestoreArray(y, &leafdata)); in main()
152 PetscCall(VecRestoreArray(x, &rootdata)); in main()
204 PetscCall(VecRestoreArray(y2, &leafupdate)); in main()
207 PetscCall(VecRestoreArray(y, &leafdata)); in main()
[all …]
/petsc/src/mat/tests/
H A Dex142.c99 PetscCall(VecRestoreArray(x, &x_array)); in main()
100 PetscCall(VecRestoreArray(y, &y_array)); in main()
101 PetscCall(VecRestoreArray(z, &z_array)); in main()
114 PetscCall(VecRestoreArray(x, &x_array)); in main()
130 PetscCall(VecRestoreArray(x, &x_array)); in main()
131 PetscCall(VecRestoreArray(y, &y_array)); in main()
132 PetscCall(VecRestoreArray(z, &z_array)); in main()
H A Dex121.c69 PetscCall(VecRestoreArray(x, &a)); in main()
81 PetscCall(VecRestoreArray(w, &a)); in main()
109 PetscCall(VecRestoreArray(x, &a)); in main()
110 PetscCall(VecRestoreArray(w, &a2)); in main()
111 PetscCall(VecRestoreArray(z2, &a3)); in main()
/petsc/src/ksp/ksp/impls/cg/pipecg2/
H A Dpipecg2.c280 PetscCall(VecRestoreArray(vx, (PetscScalar **)&px)); in VecMergedOpsShort_Private()
281 PetscCall(VecRestoreArray(vr, (PetscScalar **)&pr)); in VecMergedOpsShort_Private()
282 PetscCall(VecRestoreArray(vz, (PetscScalar **)&pz)); in VecMergedOpsShort_Private()
283 PetscCall(VecRestoreArray(vw, (PetscScalar **)&pw)); in VecMergedOpsShort_Private()
284 PetscCall(VecRestoreArray(vp, (PetscScalar **)&pp)); in VecMergedOpsShort_Private()
285 PetscCall(VecRestoreArray(vq, (PetscScalar **)&pq)); in VecMergedOpsShort_Private()
286 PetscCall(VecRestoreArray(vc, (PetscScalar **)&pc)); in VecMergedOpsShort_Private()
287 PetscCall(VecRestoreArray(vd, (PetscScalar **)&pd)); in VecMergedOpsShort_Private()
288 PetscCall(VecRestoreArray(vg0, (PetscScalar **)&pg0)); in VecMergedOpsShort_Private()
289 PetscCall(VecRestoreArray(vh0, (PetscScalar **)&ph0)); in VecMergedOpsShort_Private()
[all …]
/petsc/src/ts/tutorials/
H A Dex20opt_ic.c49 PetscCall(VecRestoreArray(F, &f)); in RHSFunction()
103 PetscCall(VecRestoreArray(VHV[0], &vhv)); in RHSHessianProductUU()
123 PetscCall(VecRestoreArray(F, &f)); in IFunction()
199 PetscCall(VecRestoreArray(VHV[0], &vhv)); in IHessianProductUU()
226 PetscCall(VecRestoreArray(user_ptr->Lambda[0], &y_ptr)); in FormFunctionGradient()
248 PetscCall(VecRestoreArray(user_ptr->Dir, &x_ptr)); in FormHessian()
257 PetscCall(VecRestoreArray(user_ptr->Dir, &x_ptr)); in FormHessian()
307 PetscCall(VecRestoreArray(ctx->Lambda[0], &y_ptr)); in Adjoint2()
308 PetscCall(VecRestoreArray(U, &x_ptr)); in Adjoint2()
314 PetscCall(VecRestoreArray(ctx->Lambda2[0], &y_ptr)); in Adjoint2()
[all …]
H A Dex20opt_p.c55 PetscCall(VecRestoreArray(F, &f)); in RHSFunction()
112 PetscCall(VecRestoreArray(VHV[0], &vhv)); in RHSHessianProductUU()
140 PetscCall(VecRestoreArray(VHV[0], &vhv)); in RHSHessianProductUP()
168 PetscCall(VecRestoreArray(VHV[0], &vhv)); in RHSHessianProductPU()
196 PetscCall(VecRestoreArray(F, &f)); in IFunction()
273 PetscCall(VecRestoreArray(VHV[0], &vhv)); in IHessianProductUU()
301 PetscCall(VecRestoreArray(VHV[0], &vhv)); in IHessianProductUP()
329 PetscCall(VecRestoreArray(VHV[0], &vhv)); in IHessianProductPU()
442 PetscCall(VecRestoreArray(user.U, &x_ptr)); in main()
468 PetscCall(VecRestoreArray(P, &x_ptr)); in main()
[all …]
H A Dex31.c81 PetscCall(VecRestoreArray(F, &f)); in RHSFunction_Hull1972A1()
110 PetscCall(VecRestoreArray(F, &f)); in IFunction_Hull1972A1()
143 PetscCall(VecRestoreArray(F, &f)); in RHSFunction_Hull1972A2()
173 PetscCall(VecRestoreArray(F, &f)); in IFunction_Hull1972A2()
207 PetscCall(VecRestoreArray(F, &f)); in RHSFunction_Hull1972A3()
236 PetscCall(VecRestoreArray(F, &f)); in IFunction_Hull1972A3()
269 PetscCall(VecRestoreArray(F, &f)); in RHSFunction_Hull1972A4()
299 PetscCall(VecRestoreArray(F, &f)); in IFunction_Hull1972A4()
333 PetscCall(VecRestoreArray(F, &f)); in RHSFunction_Hull1972A5()
363 PetscCall(VecRestoreArray(F, &f)); in IFunction_Hull1972A5()
[all …]
H A Dex20adj.c86 PetscCall(VecRestoreArray(F, &f)); in RHSFunction()
140 PetscCall(VecRestoreArray(F, &f)); in IFunction()
319 PetscCall(VecRestoreArray(user.U, &x_ptr)); in main()
344 PetscCall(VecRestoreArray(user.lambda[0], &y_ptr)); in main()
349 PetscCall(VecRestoreArray(user.lambda[1], &y_ptr)); in main()
354 PetscCall(VecRestoreArray(user.mup[0], &x_ptr)); in main()
358 PetscCall(VecRestoreArray(user.mup[1], &x_ptr)); in main()
372 PetscCall(VecRestoreArray(user.mup[0], &x_ptr)); in main()
373 PetscCall(VecRestoreArray(user.lambda[0], &y_ptr)); in main()
379 PetscCall(VecRestoreArray(user.mup[1], &x_ptr)); in main()
[all …]
/petsc/src/ts/tutorials/hybrid/
H A Dex1adj.c85 PetscCall(VecRestoreArray(mu[0], &y)); in ShiftGradients()
86 PetscCall(VecRestoreArray(lambda[0], &x)); in ShiftGradients()
95 PetscCall(VecRestoreArray(mu[1], &y)); in ShiftGradients()
96 PetscCall(VecRestoreArray(lambda[1], &x)); in ShiftGradients()
142 PetscCall(VecRestoreArray(F, &f)); in IFunction()
248 PetscCall(VecRestoreArray(U, &u)); in main()
297 PetscCall(VecRestoreArray(lambda[0], &u)); in main()
300 PetscCall(VecRestoreArray(lambda[1], &u)); in main()
320 PetscCall(VecRestoreArray(mu[0], &u)); in main()
321 PetscCall(VecRestoreArray(mu[1], &v)); in main()
H A Dex1fd.c86 PetscCall(VecRestoreArray(mu[0], &y)); in ShiftGradients()
87 PetscCall(VecRestoreArray(lambda[0], &x)); in ShiftGradients()
96 PetscCall(VecRestoreArray(mu[1], &y)); in ShiftGradients()
97 PetscCall(VecRestoreArray(lambda[1], &x)); in ShiftGradients()
142 PetscCall(VecRestoreArray(F, &f)); in IFunction()
240 PetscCall(VecRestoreArray(U, &u)); in main()
279 PetscCall(VecRestoreArray(U, &u)); in main()
289 PetscCall(VecRestoreArray(U, &u)); in main()
300 PetscCall(VecRestoreArray(U, &u)); in main()
308 PetscCall(VecRestoreArray(U, &u)); in main()
/petsc/src/ts/tutorials/autodiff/
H A Dex16adj.cxx45 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionPassive()
78 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionActive()
112 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionActiveP()
231 PetscCall(VecRestoreArray(x, &x_ptr)); in main()
280 PetscCall(VecRestoreArray(lambda[0], &x_ptr)); in main()
284 PetscCall(VecRestoreArray(lambda[1], &x_ptr)); in main()
290 PetscCall(VecRestoreArray(mu[0], &x_ptr)); in main()
293 PetscCall(VecRestoreArray(mu[1], &x_ptr)); in main()
H A Dex16adj_tl.cxx62 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionPassive()
137 PetscCall(VecRestoreArray(X, &x)); in RHSJacobianP()
251 PetscCall(VecRestoreArray(x, &x_ptr)); in main()
290 PetscCall(VecRestoreArray(lambda[0], &x_ptr)); in main()
294 PetscCall(VecRestoreArray(lambda[1], &x_ptr)); in main()
300 PetscCall(VecRestoreArray(mu[0], &x_ptr)); in main()
303 PetscCall(VecRestoreArray(mu[1], &x_ptr)); in main()
/petsc/src/vec/vec/tests/
H A Dex38.c30 PetscCall(VecRestoreArray(X, &x)); in main()
61 PetscCall(VecRestoreArray(Y, &y)); in main()
64 PetscCall(VecRestoreArray(Z, &z)); in main()
67 PetscCall(VecRestoreArray(W, &w)); in main()
/petsc/src/vec/is/sf/tutorials/
H A Dex2.c67 PetscCall(VecRestoreArray(A, &bufA)); in main()
68 PetscCall(VecRestoreArray(B, &bufB)); in main()
80 PetscCall(VecRestoreArray(Aout, &bufAout)); in main()
81 PetscCall(VecRestoreArray(Bout, &bufBout)); in main()
/petsc/src/tao/bound/tutorials/
H A Dplate2f.F90253 PetscCall(VecRestoreArray(localX, x_v, ierr))
254 PetscCall(VecRestoreArray(localV, g_v, ierr))
255 PetscCall(VecRestoreArray(Left, left_v, ierr))
256 PetscCall(VecRestoreArray(Top, top_v, ierr))
257 PetscCall(VecRestoreArray(Bottom, bottom_v, ierr))
258 PetscCall(VecRestoreArray(Right, right_v, ierr))
486 PetscCall(VecRestoreArray(localX, x_v, ierr))
487 PetscCall(VecRestoreArray(Left, left_v, ierr))
488 PetscCall(VecRestoreArray(Right, right_v, ierr))
489 PetscCall(VecRestoreArray(Top, top_v, ierr))
[all …]
H A Dplate2.c362 PetscCall(VecRestoreArray(localX, &x)); in FormFunctionGradient()
363 PetscCall(VecRestoreArray(localG, &g)); in FormFunctionGradient()
364 PetscCall(VecRestoreArray(user->Left, &left)); in FormFunctionGradient()
365 PetscCall(VecRestoreArray(user->Top, &top)); in FormFunctionGradient()
366 PetscCall(VecRestoreArray(user->Bottom, &bottom)); in FormFunctionGradient()
367 PetscCall(VecRestoreArray(user->Right, &right)); in FormFunctionGradient()
578 PetscCall(VecRestoreArray(localX, &x)); in FormHessian()
579 PetscCall(VecRestoreArray(user->Left, &left)); in FormHessian()
580 PetscCall(VecRestoreArray(user->Top, &top)); in FormHessian()
581 PetscCall(VecRestoreArray(user->Bottom, &bottom)); in FormHessian()
[all …]
/petsc/src/ksp/ksp/impls/bcgs/fbcgsr/
H A Dfbcgsr.c42 PetscCall(VecRestoreArray(RP, NULL)); in KSPSolve_FBCGSR()
45 PetscCall(VecRestoreArray(R, NULL)); in KSPSolve_FBCGSR()
48 PetscCall(VecRestoreArray(P, NULL)); in KSPSolve_FBCGSR()
51 PetscCall(VecRestoreArray(V, NULL)); in KSPSolve_FBCGSR()
54 PetscCall(VecRestoreArray(S, NULL)); in KSPSolve_FBCGSR()
57 PetscCall(VecRestoreArray(T, NULL)); in KSPSolve_FBCGSR()
60 PetscCall(VecRestoreArray(S2, NULL)); in KSPSolve_FBCGSR()
/petsc/src/ts/tutorials/power_grid/
H A Dex3sa.c110 PetscCall(VecRestoreArray(U, &u)); in main()
189 PetscCall(VecRestoreArray(U, &u)); in main()
207 PetscCall(VecRestoreArray(lambda[0], &y_ptr)); in main()
211 PetscCall(VecRestoreArray(mu[0], &x_ptr)); in main()
222 PetscCall(VecRestoreArray(q, &x_ptr)); in main()
226 PetscCall(VecRestoreArray(mu[0], &x_ptr)); in main()
236 PetscCall(VecRestoreArray(q, &s_ptr)); in main()
H A Dex9opt.c63 PetscCall(VecRestoreArray(F, &f)); in RHSFunction()
122 PetscCall(VecRestoreArray(R, &r)); in CostIntegrand()
162 PetscCall(VecRestoreArray(mu, &y)); in ComputeSensiP()
282 PetscCall(VecRestoreArray(p, &x_ptr)); in main()
294 PetscCall(VecRestoreArray(lowerb, &x_ptr)); in main()
297 PetscCall(VecRestoreArray(upperb, &x_ptr)); in main()
373 PetscCall(VecRestoreArray(U, &u)); in FormFunction()
382 PetscCall(VecRestoreArray(q, &x_ptr)); in FormFunction()
419 PetscCall(VecRestoreArray(U, &u)); in FormGradient()
441 PetscCall(VecRestoreArray(lambda[0], &y_ptr)); in FormGradient()
[all …]
H A Dex9adj.c73 PetscCall(VecRestoreArray(F, &f)); in RHSFunction()
132 PetscCall(VecRestoreArray(R, &r)); in CostIntegrand()
263 PetscCall(VecRestoreArray(U, &u)); in main()
302 PetscCall(VecRestoreArray(lambda[0], &y_ptr)); in main()
307 PetscCall(VecRestoreArray(mu[0], &x_ptr)); in main()
327 PetscCall(VecRestoreArray(U, &u)); in main()
345 PetscCall(VecRestoreArray(lambda[0], &y_ptr)); in main()
349 PetscCall(VecRestoreArray(mu[0], &x_ptr)); in main()
360 PetscCall(VecRestoreArray(q, &x_ptr)); in main()
/petsc/src/ts/tutorials/multirate/
H A Dex3.c29 PetscCall(VecRestoreArray(F, &f)); in RHSFunction()
43 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionslow()
57 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionfast()
69 PetscCall(VecRestoreArray(U, &u)); in sol_true()
121 PetscCall(VecRestoreArray(U, &u)); in main()
H A Dex1.c29 PetscCall(VecRestoreArray(F, &f)); in RHSFunction()
43 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionslow()
57 PetscCall(VecRestoreArray(F, &f)); in RHSFunctionfast()
72 PetscCall(VecRestoreArray(U, &u)); in sol_true()
140 PetscCall(VecRestoreArray(U, &u)); in main()
/petsc/src/dm/tests/
H A Dex12.c49 PetscCall(VecRestoreArray(global, &localptr)); in main()
69 PetscCall(VecRestoreArray(global, &globalptr)); in main()
70 PetscCall(VecRestoreArray(local, &localptr)); in main()
/petsc/src/vec/vec/tutorials/
H A Dex9.c90 PetscCall(VecRestoreArray(gxs, &array)); in main()
126 PetscCall(VecRestoreArray(lx, &array)); in main()
136 PetscCall(VecRestoreArray(lx, &array)); in main()
146 PetscCall(VecRestoreArray(lx, &array)); in main()
/petsc/src/snes/impls/vi/ss/
H A Dviss.c85 PetscCall(VecRestoreArray(F, &f_arr)); in SNESVIComputeFunction()
86 PetscCall(VecRestoreArray(Xl, &l)); in SNESVIComputeFunction()
87 PetscCall(VecRestoreArray(Xu, &u)); in SNESVIComputeFunction()
88 PetscCall(VecRestoreArray(phi, &phi_arr)); in SNESVIComputeFunction()
133 PetscCall(VecRestoreArray(X, &x)); in SNESVIComputeBsubdifferentialVectors()
134 PetscCall(VecRestoreArray(F, &f)); in SNESVIComputeBsubdifferentialVectors()
135 PetscCall(VecRestoreArray(snes->xl, &l)); in SNESVIComputeBsubdifferentialVectors()
136 PetscCall(VecRestoreArray(snes->xu, &u)); in SNESVIComputeBsubdifferentialVectors()
137 PetscCall(VecRestoreArray(Da, &da)); in SNESVIComputeBsubdifferentialVectors()
138 PetscCall(VecRestoreArray(Db, &db)); in SNESVIComputeBsubdifferentialVectors()

12345678910>>...20