Rename `NonLinearSolver.extend` into `add_problem`
Description
The term extend
, used as a method of drivers NonLinearSolver
and RunSingleCase
, was inherited from MathematicalProblem
, together with add_equation
and add_unknown
.
While the last two make sense in the context of a solver, the notion of extension does not quite fit.
Proposal
Rename method extend
into add_problem
:
from cosapp.drivers import NonLinearSolver
system = MySystem('system')
solver = system.add_driver(NonLinearSolver('solver'))
system.add_equation('y == 0')
solver.add_unknown('x')
solver.add_problem(system.design_method['whatever'])
Edited by Etienne Lac