Home
last modified time | relevance | path

Searched refs:curr_sol (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex50.c53 Vec curr_sol; member
139 PetscCall(DMCreateGlobalVector(appctx.da, &appctx.dat.curr_sol)); in main()
140 PetscCall(VecDuplicate(appctx.dat.curr_sol, &appctx.SEMop.grid)); in main()
141 PetscCall(VecDuplicate(appctx.dat.curr_sol, &appctx.SEMop.mass)); in main()
179 …PetscCall(RHSMatrixLaplaciangllDM(appctx.ts, 0.0, appctx.dat.curr_sol, appctx.SEMop.stiff, appctx.… in main()
180 …PetscCall(RHSMatrixAdvectiongllDM(appctx.ts, 0.0, appctx.dat.curr_sol, appctx.SEMop.grad, appctx.S… in main()
218 PetscCall(TrueSolution(appctx.ts, 0, appctx.dat.curr_sol, &appctx)); in main()
224 PetscCall(TSSolve(appctx.ts, appctx.dat.curr_sol)); in main()
231 PetscCall(VecDestroy(&appctx.dat.curr_sol)); in main()
/petsc/src/tao/unconstrained/tutorials/
H A Dspectraladjointassimilation.c67 Vec curr_sol; member
170 PetscCall(VecDuplicate(u, &appctx.dat.curr_sol)); in main()
275 PetscCall(VecDestroy(&appctx.dat.curr_sol)); in main()
589 PetscCall(VecCopy(ic, appctx->dat.curr_sol)); in FormFunctionGradient()
591 PetscCall(TSSolve(appctx->ts, appctx->dat.curr_sol)); in FormFunctionGradient()
592 PetscCall(VecCopy(appctx->dat.curr_sol, appctx->dat.joe)); in FormFunctionGradient()
595 PetscCall(VecWAXPY(G, -1.0, appctx->dat.curr_sol, appctx->dat.reference)); in FormFunctionGradient()
H A Dburgers_spectral.c60 Vec curr_sol; member
159 PetscCall(VecDuplicate(u, &appctx.dat.curr_sol)); in main()
266 PetscCall(VecDestroy(&appctx.dat.curr_sol)); in main()
568 PetscCall(VecCopy(IC, appctx->dat.curr_sol)); in FormFunctionGradient()
570 PetscCall(TSSolve(appctx->ts, appctx->dat.curr_sol)); in FormFunctionGradient()
572 PetscCall(VecWAXPY(G, -1.0, appctx->dat.curr_sol, appctx->dat.obj)); in FormFunctionGradient()