Lines Matching refs:solution
57 Vec solution; /* global exact solution vector */ member
114 PetscCall(VecDuplicate(u, &appctx.solution)); in main()
227 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()
357 PetscCall(ExactSolution(time, appctx->solution, appctx)); in Monitor()
366 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_SELF)); in Monitor()
372 PetscCall(VecAXPY(appctx->solution, -1.0, u)); in Monitor()
373 PetscCall(VecNorm(appctx->solution, NORM_2, &norm_2)); in Monitor()
375 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor()
386 PetscCall(VecView(appctx->solution, appctx->viewer1)); in Monitor()
393 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_SELF)); in Monitor()