add new function to NewtonSolver (c++ & python)
I am trying to add the following function to NewtonSolver so that I can overload it in python. I also modified NewtonSolver::solve to call update_solution. Everthing builds.
void NewtonSolver:
{
const double relaxation = parameters[
if (std::abs(1.0 - relaxation) < DOLFIN_EPS)
x -= dx;
else
x.axpy(
}
However if I inherit from NewtonSolver in python then it seems that my overloaded "update_solution" is not being called by c++ NewtonSolver:
class DDSolver(
def update_
print 'updating solution'
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply: