This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

bound solution update in nonlinear solver

0 votes

For certain problem I find it useful to bound the solution update. Is there a way to do this using the PETScSNESSolver? After each iteration as like to do something like

 i = (dx > ub):
 dx[i] = ub
 i = (dx<lb)
 dx[i] = lb
 x -= dx

where x is my solution.

asked Mar 18, 2016 by chaffra FEniCS User (1,830 points)

1 Answer

...