This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: GSL 0.9 Fails in test with VC++ 6.0
- To: Jose Miguel Buenaposada Biencinto <jmbuena at dia dot fi dot upm dot es>
- Subject: Re: GSL 0.9 Fails in test with VC++ 6.0
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Mon, 30 Jul 2001 17:53:46 +0100 (BST)
- CC: gsl-discuss at sources dot redhat dot com
- References: <3B618FE9.CCDA3EDB@dia.fi.upm.es>
Jose Miguel Buenaposada Biencinto writes:
> Here we are trying to build a functional library of GSL 0.9 with
> Visual C++ 6.0.
> When we build it in debug configuration there is no errors at all
> in the test cases, but when we build the release versions of the
> libraries and the test programs we get 28 failures (See below). It
> seems to be related with the optimisation flags ("maximizate speed"
> choosen, /O2 flag) because if we build all, in the release
> configuration, but changing the optimization to "default" then we
> get 0 errors.
I have checked in for the first two problems (integration and
multifit).
Could you try the following patch and let me know if it works for the
specfunc tests. Thanks.
Index: test_legendre.c
===================================================================
RCS file: /cvs/gsl/gsl/specfunc/test_legendre.c,v
retrieving revision 1.18
diff -u -r1.18 test_legendre.c
--- test_legendre.c 2001/07/12 14:26:32 1.18
+++ test_legendre.c 2001/07/30 16:51:45
@@ -96,7 +96,7 @@
TEST_SF(s, gsl_sf_legendre_Plm_e, (100, 5, -0.5, &r), -6.617107444248382171e+08, TEST_TOL0, GSL_SUCCESS);
TEST_SF(s, gsl_sf_legendre_Plm_e, (100, 5, 1.0e-08, &r), 817.8987598063712851, TEST_TOL0, GSL_SUCCESS);
TEST_SF(s, gsl_sf_legendre_Plm_e, (100, 5, 0.5, &r), 6.617107444248382171e+08, TEST_TOL0, GSL_SUCCESS);
- TEST_SF(s, gsl_sf_legendre_Plm_e, (100, 5, 0.999, &r), -1.9831610803806212189e+09, TEST_TOL1, GSL_SUCCESS);
+ TEST_SF(s, gsl_sf_legendre_Plm_e, (100, 5, 0.999, &r), -1.9831610803806212189e+09, TEST_TOL2, GSL_SUCCESS);
sa = 0;
gsl_sf_legendre_Plm_array(100, 5, 0.5, L);
@@ -108,7 +108,7 @@
TEST_SF(s, gsl_sf_legendre_sphPlm_e, (10, 0, -0.5, &r), -0.24332702369300133776, TEST_TOL0, GSL_SUCCESS);
TEST_SF(s, gsl_sf_legendre_sphPlm_e, (10, 0, 0.5, &r), -0.24332702369300133776, TEST_TOL0, GSL_SUCCESS);
- TEST_SF(s, gsl_sf_legendre_sphPlm_e, (10, 0, 0.999, &r), 1.2225754122797385990, TEST_TOL0, GSL_SUCCESS);
+ TEST_SF(s, gsl_sf_legendre_sphPlm_e, (10, 0, 0.999, &r), 1.2225754122797385990, TEST_TOL1, GSL_SUCCESS);
TEST_SF(s, gsl_sf_legendre_sphPlm_e, (10, 5, -0.5, &r), -0.3725739049803293972, TEST_TOL0, GSL_SUCCESS);
TEST_SF(s, gsl_sf_legendre_sphPlm_e, (10, 5, 1.0e-08, &r), -3.1377233589376792243e-08, TEST_TOL0, GSL_SUCCESS);