Lines Matching refs:solution
58 Vec solution; /* global exact solution vector */ member
117 PetscCall(VecDuplicate(u, &appctx.solution)); in main()
230 PetscCall(VecDestroy(&appctx.solution)); in main()
299 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() argument
308 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
323 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
360 PetscCall(ExactSolution(crtime, appctx->solution, appctx)); in Monitor()
369 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_SELF)); in Monitor()
375 PetscCall(VecAXPY(appctx->solution, -1.0, u)); in Monitor()
376 PetscCall(VecNorm(appctx->solution, NORM_2, &norm_2)); in Monitor()
378 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor()
395 PetscCall(VecView(appctx->solution, appctx->viewer1)); in Monitor()
402 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_SELF)); in Monitor()