Set Prefix and view object of NonlinearVariationalSolver and PETScSNESSolver

If you’re looking for bound-constrained solution functionality, you might try the PETSc/TAO solver. There is an undocumented demo for it here:

https://bitbucket.org/fenics-project/dolfin/src/7afe9e1a24edb0e8d5ae51c3419fbb49f44d3d79/python/demo/undocumented/buckling-tao/demo_buckling-tao.py?at=release&fileviewer=file-view-default