--- caffe-mine/include/caffe/solver.hpp      2016-06-30 12:06:04.973932093 +0200
+++ caffe/include/caffe/solver.hpp 2016-06-30 17:40:20.149793850 +0200
@@ -73,6 +73,7 @@
     return test_nets_;
   }
   int iter() { return iter_; }
+  void set_iter(int new_iter) { iter_ = new_iter; }
 
   // Invoked at specific points during an iteration
   class Callback {
@@ -94,9 +95,9 @@
    */
   virtual inline const char* type() const { return ""; }
 
- protected:
   // Make and apply the update value for the current iteration.
   virtual void ApplyUpdate() = 0;
+ protected:
   string SnapshotFilename(const string extension);
   string SnapshotToBinaryProto();
   string SnapshotToHDF5();
