Sometimes, such as when we have a rank-1 nullspace projection, the second Krylov vector lies in the nullspace of the preconditioner (projection). If we need to exit early, due to the trust-region radius being hit or due to a detected NaN, we don't have a search direction to fall back on in order to calculate our truncated solution. In this case, we can calculate our truncated solution based on our first Krylov vector, but we need special code to do so. We need a unit test to test this functionality.
Sometimes, such as when we have a rank-1 nullspace projection, the second Krylov vector lies in the nullspace of the preconditioner (projection). If we need to exit early, due to the trust-region radius being hit or due to a detected NaN, we don't have a search direction to fall back on in order to calculate our truncated solution. In this case, we can calculate our truncated solution based on our first Krylov vector, but we need special code to do so. We need a unit test to test this functionality.