Lines Matching refs:dat
77 PetscData dat;
154 PetscCall(VecDuplicate(u, &appctx.dat.ic));
155 PetscCall(VecDuplicate(u, &appctx.dat.true_solution));
156 PetscCall(VecDuplicate(u, &appctx.dat.obj));
159 PetscCall(VecDuplicate(u, &appctx.dat.curr_sol));
237 PetscCall(InitialConditions(appctx.dat.ic, &appctx));
238 PetscCall(TrueSolution(appctx.dat.true_solution, &appctx));
239 PetscCall(ComputeObjective(appctx.param.Tend, appctx.dat.obj, &appctx));
248 PetscCall(TaoSetSolution(tao, appctx.dat.ic));
261 PetscCall(VecDestroy(&appctx.dat.ic));
262 PetscCall(VecDestroy(&appctx.dat.true_solution));
263 PetscCall(VecDestroy(&appctx.dat.obj));
266 PetscCall(VecDestroy(&appctx.dat.curr_sol));
568 PetscCall(VecCopy(IC, appctx->dat.curr_sol));
570 PetscCall(TSSolve(appctx->ts, appctx->dat.curr_sol));
572 PetscCall(VecWAXPY(G, -1.0, appctx->dat.curr_sol, appctx->dat.obj));
582 PetscCall(VecWAXPY(temp, -1.0, appctx->dat.ic, appctx->dat.true_solution));
610 PetscCall(VecDuplicate(appctx->dat.ic, &temp));
611 PetscCall(VecWAXPY(temp, -1.0, appctx->dat.ic, appctx->dat.true_solution));