weird; I have all SetupSNES functions except SetFunction and SetJacobian outside main. I also figured out how to GetFunction. It appears from the Segmentation fault that after Dsearch is called, the function disappears. Still debugging
really weird fix to a bug! See r072913 for details. I hacked this away but I have no idea what the hell is going on.