[gsl/temp_odecrash] minor cleanup of gsl.spec

Frantisek Kluknavsky fkluknav at fedoraproject.org
Wed Jan 9 13:29:08 UTC 2013


commit 72f5734ea2ef9627f423b6d36796b8f12be94037
Author: Frantisek Kluknavsky <fkluknav at redhat.com>
Date:   Wed Jan 9 14:29:02 2013 +0100

    minor cleanup of gsl.spec

 wrk.patch |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/wrk.patch b/wrk.patch
index 0647f62..0d1a06e 100644
--- a/wrk.patch
+++ b/wrk.patch
@@ -1,8 +1,8 @@
 diff -up wrk/ode-initval2/msbdf.c.wrk wrk/ode-initval2/msbdf.c
 diff -up wrk/ode-initval2/test.c.wrk wrk/ode-initval2/test.c
 --- wrk/ode-initval2/test.c.wrk	2013-01-09 10:48:22.051415928 +0100
-+++ wrk/ode-initval2/test.c	2013-01-09 14:24:19.975704801 +0100
-@@ -1264,10 +1264,16 @@ sys_driver (const gsl_odeiv2_step_type *
++++ wrk/ode-initval2/test.c	2013-01-09 14:28:49.354409607 +0100
+@@ -1264,10 +1264,17 @@ sys_driver (const gsl_odeiv2_step_type *
    nfe = 0;
    nje = 0;
    
@@ -12,14 +12,15 @@ diff -up wrk/ode-initval2/test.c.wrk wrk/ode-initval2/test.c
        s = gsl_odeiv2_evolve_apply (d->e, d->c, d->s, sys, &t, t1, &h, y);
  
 +      printf("krok %d:", ++poc);
-+      for (int k=0; k<15; ++k) {
-+	      print(" %g", y[k];
++      int k;
++      for (k=0; k<15; ++k) {
++	      printf(" %g", y[k];
 +      }
-+      print("\n");
++      printf("\n");
  #ifdef DEBUG
        printf ("%.5e %.5e %.5e %d\n", t, y[0], y[1],
                gsl_odeiv2_step_order (d->s));
-@@ -1959,7 +1965,7 @@ test_extreme_problems (void)
+@@ -1959,7 +1966,7 @@ test_extreme_problems (void)
  
    /* Loop over problems */
  
@@ -28,14 +29,14 @@ diff -up wrk/ode-initval2/test.c.wrk wrk/ode-initval2/test.c
      {
        /* Initialize */
  
-@@ -2001,12 +2007,13 @@ test_extreme_problems (void)
+@@ -2001,12 +2008,13 @@ test_extreme_problems (void)
  
        /* Call each solver for the problem */
  
 -      for (i = 0; steppers[i] != 0; i++)
 +      for (i = 1; steppers[i] != 0; i++)
          {
-+	  printf("spustam driver p=%d i=%d\n", p, i);
++	  printf("spustam driver p=%ld i=%ld\n", p, i);
            int s = sys_driver (steppers[i], prob[p], start[p], end[p],
                                initstepsize[p], &y[sd[p] * i],
                                epsabs[p], epsrel[p], probname[p]);
@@ -44,7 +45,7 @@ diff -up wrk/ode-initval2/test.c.wrk wrk/ode-initval2/test.c
            if (s != GSL_SUCCESS)
              {
                printf ("start=%.5e, initstepsize=%.5e\n", start[p],
-@@ -2450,7 +2457,7 @@ main (void)
+@@ -2450,7 +2458,7 @@ main (void)
  
    /* Basic tests for all steppers */
  
@@ -53,7 +54,7 @@ diff -up wrk/ode-initval2/test.c.wrk wrk/ode-initval2/test.c
      {
        test_stepper (p[i].type);
      }
-@@ -2469,9 +2476,9 @@ main (void)
+@@ -2469,9 +2477,9 @@ main (void)
        test_stepsize_fail (p[i].type, p[i].h);
        test_user_break (p[i].type, p[i].h);
      }
@@ -65,7 +66,7 @@ diff -up wrk/ode-initval2/test.c.wrk wrk/ode-initval2/test.c
    explicit_stepper[0].type = gsl_odeiv2_step_rk4;
    explicit_stepper[0].h = 1.0e-3;
    explicit_stepper[1].type = gsl_odeiv2_step_rk2;
-@@ -2491,16 +2498,16 @@ main (void)
+@@ -2491,16 +2499,16 @@ main (void)
        test_stepfn (explicit_stepper[i].type);
        test_stepfn2 (explicit_stepper[i].type);
      }


More information about the scm-commits mailing list