Lines Matching refs:solution
59 Vec solution; /* global exact solution vector */ member
123 PetscCall(VecDuplicate(u, &appctx.solution)); in main()
263 PetscCall(VecDestroy(&appctx.solution)); in main()
336 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() argument
345 PetscCall(VecGetArrayWrite(solution, &s_localptr)); in ExactSolution()
360 PetscCall(VecRestoreArrayWrite(solution, &s_localptr)); in ExactSolution()
396 PetscCall(ExactSolution(time, appctx->solution, appctx)); in Monitor()
405 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_SELF)); in Monitor()
411 PetscCall(VecAXPY(appctx->solution, -1.0, u)); in Monitor()
412 PetscCall(VecNorm(appctx->solution, NORM_2, &norm_2)); in Monitor()
414 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor()
432 PetscCall(VecView(appctx->solution, appctx->viewer1)); in Monitor()
439 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_SELF)); in Monitor()