Matt and Hong, I will try to customize the example. However, since my application involves multiple ksp solvers (using different algorithms), I would really like to set the options with in the code, instead of on the command line. Is there a way of doing this ? Thanks Rgds, Amit