From 56ba34eaecc19837af6371637e2bf70d5078ddfa Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@jrc.ec.europa.eu>
Date: Fri, 4 Nov 2011 16:41:08 +0100
Subject: [PATCH] Re-introduced partial savings in optimizer=5 routines.

Manual (partial) cherry-pick from
8612c7258b82ae75798b11301080bfc86bcc18d8
---
 matlab/mr_gstep.m   | 2 ++
 matlab/mr_hessian.m | 1 +
 2 files changed, 3 insertions(+)

diff --git a/matlab/mr_gstep.m b/matlab/mr_gstep.m
index bf13c142c9..3dbf6b736d 100644
--- a/matlab/mr_gstep.m
+++ b/matlab/mr_gstep.m
@@ -71,7 +71,9 @@ while i<n,
         end
         xh1=x;
     end
+    save gstep.mat x h1 f0
 end
 
+save gstep.mat x h1 f0
 
 
diff --git a/matlab/mr_hessian.m b/matlab/mr_hessian.m
index 9281866fd9..b919c5bd4e 100644
--- a/matlab/mr_hessian.m
+++ b/matlab/mr_hessian.m
@@ -242,3 +242,4 @@ if any(isnan(hessian_mat)),
 end
 hh1=h1;
 htol1=htol;
+save hess.mat hessian_mat
-- 
GitLab