Lines Matching refs:solution
65 Vec solution; /* global exact solution vector */ member
142 PetscCall(VecDuplicate(u, &appctx.solution)); in main()
265 PetscCall(VecDestroy(&appctx.solution)); in main()
345 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() argument
355 PetscCall(VecGetOwnershipRange(solution, &mybase, &myend)); in ExactSolution()
360 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
375 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
409 PetscCall(ExactSolution(time, appctx->solution, appctx)); in Monitor()
418 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_WORLD)); in Monitor()
424 PetscCall(VecAXPY(appctx->solution, -1.0, u)); in Monitor()
425 PetscCall(VecNorm(appctx->solution, NORM_2, &norm_2)); in Monitor()
427 PetscCall(VecNorm(appctx->solution, NORM_MAX, &norm_max)); in Monitor()
442 PetscCall(VecView(appctx->solution, appctx->viewer1)); in Monitor()
449 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_WORLD)); in Monitor()