Lines Matching refs:check
572 StepCheckCtx *check; in PostCheck() local
584 check = (StepCheckCtx *)ctx; in PostCheck()
585 user = check->user; in PostCheck()
591 …ndidate step at iteration %" PetscInt_FMT " with tolerance %g\n", iter, (double)check->tolerance)); in PostCheck()
594 PetscCall(DMDAVecGetArray(da, check->last_step, &xa_last)); in PostCheck()
605 if (!PetscAbsScalar(xa[i])) rdiff = 2 * check->tolerance; in PostCheck()
607 if (rdiff > check->tolerance) { in PostCheck()
614 PetscCall(DMDAVecRestoreArray(da, check->last_step, &xa_last)); in PostCheck()
617 PetscCall(VecCopy(x, check->last_step)); in PostCheck()
641 SetSubKSPCtx *check; in PostSetSubKSP() local
650 check = (SetSubKSPCtx *)ctx; in PostSetSubKSP()
660 …" PetscInt_FMT " %" PetscInt_FMT ", subksp_it %" PetscInt_FMT "\n", iter, check->its0, its, sub_it… in PostSetSubKSP()
661 ksp_ratio = (PetscReal)its / check->its0; in PostSetSubKSP()
667 check->its0 = its; /* save current outer KSP iteration number */ in PostSetSubKSP()