~ubuntu-branches/ubuntu/karmic/gmsh/karmic

« back to all changes in this revision

Viewing changes to Numeric/gsl_newt.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme, Daniel Leidert
  • Date: 2008-05-18 12:46:05 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080518124605-716xqbqeo07o497k
Tags: 2.2.0-2
[Christophe Prud'homme]
* Bug fix: "gmsh ships no .desktop", thanks to Vassilis Pandis (Closes:
  #375770). Applied the Ubuntu patch.

[Daniel Leidert]
* debian/control (Vcs-Svn): Fixed.
  (Build-Depends): Use texlive instead of tetex-bin.
* debian/gmsh.doc-base (Section): Fixed accordingly to doc-base (>= 0.8.10).
* debian/rules: Removed some variable declarations, that lead to double
  configuration and seem to be useless.
  (build/gmsh): Try to avoid multiple runs by using a stamp.
  (orig-tarball): Renamed to get-orig-source and changed to use uscan.
* debian/watch: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: gsl_newt.cpp,v 1.15 2006-11-27 22:22:17 geuzaine Exp $
 
1
// $Id: gsl_newt.cpp,v 1.18 2008-02-17 08:48:02 geuzaine Exp $
2
2
//
3
 
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
 
3
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
4
4
//
5
5
// This program is free software; you can redistribute it and/or modify
6
6
// it under the terms of the GNU General Public License as published by
25
25
 
26
26
// This implements a Newton method using the GSL.
27
27
 
 
28
#include "Message.h"
 
29
 
28
30
#if defined(HAVE_GSL)
29
31
 
30
 
#include "Gmsh.h"
31
32
#include "Numeric.h"
32
33
 
33
34
#include <gsl/gsl_math.h>
92
93
  convert_vector_to_gsl(x, n, xx);
93
94
 
94
95
  T = gsl_multiroot_fsolver_hybrid;
95
 
  s = gsl_multiroot_fsolver_alloc(T, 2);
 
96
  s = gsl_multiroot_fsolver_alloc(T, n);
96
97
  gsl_multiroot_fsolver_set(s, &f, xx);
97
98
 
98
99
  do {