Lines Matching refs:solution
52 Vec solution; /* global exact solution vector */ member
122 PetscCall(VecDuplicate(u, &appctx.solution)); in main()
199 PetscCall(VecDestroy(&appctx.solution)); in main()
281 PetscErrorCode ExactSolution(PetscReal t, Vec solution, AppCtx *appctx) in ExactSolution() argument
291 PetscCall(VecGetOwnershipRange(solution, &mybase, &myend)); in ExactSolution()
296 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
310 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
355 PetscCall(ExactSolution(time, appctx->solution, appctx)); in Monitor()
364 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_WORLD)); in Monitor()
370 PetscCall(VecAXPY(appctx->solution, -1.0, u)); in Monitor()
371 PetscCall(VecNorm(appctx->solution, NORM_2, &en2)); in Monitor()
373 PetscCall(VecNorm(appctx->solution, NORM_MAX, &enmax)); in Monitor()
386 PetscCall(VecView(appctx->solution, PETSC_VIEWER_STDOUT_WORLD)); in Monitor()