fixing bug in new solver1d (need to add explicit copy assignment and copy constructor to setup properly the exitcriterion).