From edd13e09cfcdd6d73ecc9123d4e52505ee6f7e4d Mon Sep 17 00:00:00 2001 From: Claudine Bon <claudine.bon@samtech.com> Date: Mon, 9 Mar 2009 09:30:31 +0000 Subject: [PATCH] remove debug code --- Numeric/Numeric.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Numeric/Numeric.cpp b/Numeric/Numeric.cpp index 9b17a2c310..335e79ea7e 100644 --- a/Numeric/Numeric.cpp +++ b/Numeric/Numeric.cpp @@ -509,14 +509,6 @@ bool newton_fd(void (*func)(gmshVector<double> &, gmshVector<double> &, void *), if (N == 1) dx(0) = f(0) / J(0, 0); - else if (N == -2){ - const double det = J(0,0)*J(1,1) - J(1,0)*J(0,1); - if (det == 0.0) - printf("oops\n"); - printf("oops\n"); - dx(0) = (f(0)*J(1,1) - f(1)*J(0,1))/det; - dx(1) = -(f(0)*J(0,0) - f(1)*J(1,0))/det; - } else J.lu_solve(f, dx); -- GitLab