~ubuntu-branches/ubuntu/maverick/atlc/maverick

« back to all changes in this revision

Viewing changes to src/non_gui/design_coupler.c

  • Committer: Bazaar Package Importer
  • Author(s): Bdale Garbee
  • Date: 2005-06-03 04:53:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050603045328-pohnuy5yryiv9s6o
Tags: 4.6.0-1
* new upstream version
* move make check from binary to build target so it doesn't run as root
* lose --with-threads from configure call, since it causes regression suite
  to fail many tests and upstream's README.threads is discouraging
* various tweaks to make lintian happier

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
19
19
USA.
20
20
 
21
 
Dr. David Kirkby, e-mail drkirkby@ntlworld.com 
 
21
Dr. David Kirkby, e-mail drkirkby at ntlworld.com 
22
22
 
23
23
*/
24
24
 
 
25
#include "config.h"
 
26
 
25
27
#include "definitions.h"
26
28
#include "exit_codes.h"
27
29
 
49
51
#include <math.h>
50
52
#endif
51
53
 
52
 
#ifdef HAVE_LIBGSL
53
 
#include <gsl/gsl_sf_ellint.h>
54
 
#endif
55
54
 
56
55
extern int errno;
57
56
int verbose=2;
283
282
        /* Results are calculated assuming the box is one unit (mm, inch
284
283
        etc) high and later scaled */
285
284
 
286
 
#ifdef HAVE_LIBGSL
287
285
        calculate_Zodd_and_Zeven(&Zodd_x, &Zeven_x, &Zo_x, w, 1.0, s, er);
288
 
#else
289
 
        Zodd_x=1.0; Zeven_x=1.0; 
290
 
        fprintf(stderr,"This was not linked against the GNU scientific library (gsl)\n");
291
 
        exit_with_msg_and_exit_code("So the mode impedances have been set to 1 Ohm",NOT_LINKED_WITH_GSL_LIBRARY);
292
 
#endif
293
286
        error=pow(Zodd-Zodd_x,2.0) + pow(Zeven-Zeven_x,2.0);
294
287
        if( error < error_max )
295
288
        {