LinearSolver and NewtonSolver can be unified into a single class, where convergence criteria determine the behavior. E.g., make a single convergence criterion for the LinearSolver that always accepts the solution, and a single divergence criterion that checks for nans.
LinearSolver and NewtonSolver can be unified into a single class, where convergence criteria determine the behavior. E.g., make a single convergence criterion for the LinearSolver that always accepts the solution, and a single divergence criterion that checks for nans.