From 5e87dfcd0f32f7bfb08d8321ff7f232ab0c39822 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Mon, 23 Jan 2012 13:59:25 +0100
Subject: [PATCH] Prevent homotopy routine to enter in the second loop (doi not
 (re)start the homotopy from weight=0).

---
 matlab/ep/homotopic_steps.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/ep/homotopic_steps.m b/matlab/ep/homotopic_steps.m
index 21d8d31adc..696b88014b 100644
--- a/matlab/ep/homotopic_steps.m
+++ b/matlab/ep/homotopic_steps.m
@@ -50,7 +50,7 @@ if homotopy_1
                 end
                 initial_weight = initial_weight/1.1;
                 weight = initial_weight;
-                if weight<1/4
+                if weight<1e-12
                     homotopy_1 = 0;
                     homotopy_2 = 1;
                     break
-- 
GitLab