[gsl/temp_odecrash] temporary diagnostic

Frantisek Kluknavsky fkluknav at fedoraproject.org
Thu Jan 17 15:00:52 UTC 2013


commit 9c10b5028693de3c8f2a4d657dfc968fd5f3df29
Author: Frantisek Kluknavsky <fkluknav at redhat.com>
Date:   Thu Jan 17 15:12:43 2013 +0100

    temporary diagnostic

 wrk.patch |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/wrk.patch b/wrk.patch
index db4b07c..21560a6 100644
--- a/wrk.patch
+++ b/wrk.patch
@@ -1,7 +1,18 @@
 diff -up wrk/ode-initval2/msbdf.c.wrk wrk/ode-initval2/msbdf.c
+--- wrk/ode-initval2/msbdf.c.wrk	2013-01-09 10:35:45.259960403 +0100
++++ wrk/ode-initval2/msbdf.c	2013-01-17 15:12:28.191961481 +0100
+@@ -116,7 +116,7 @@ static void *
+ msbdf_alloc (size_t dim)
+ {
+   msbdf_state_t *state = (msbdf_state_t *) malloc (sizeof (msbdf_state_t));
+-
++printf("ALOKUJEEEEEEEEEEEEEEEEEEEEEEEEEEM\n");
+   if (state == 0)
+     {
+       GSL_ERROR_NULL ("failed to allocate space for msbdf_state", GSL_ENOMEM);
 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-17 14:43:20.174615398 +0100
++++ wrk/ode-initval2/test.c	2013-01-17 15:12:31.666983138 +0100
 @@ -923,6 +923,18 @@ rhs_ringmod (double t, const double y[],
    f[13] = (-y[0] + uin1 - (ri + rg1) * y[13]) / ls1;
    f[14] = (-y[1] - (rc + rg1) * y[14]) / ls1;
@@ -29,14 +40,15 @@ diff -up wrk/ode-initval2/test.c.wrk wrk/ode-initval2/test.c
    while (t < t1)
      {
        s = gsl_odeiv2_evolve_apply (d->e, d->c, d->s, sys, &t, t1, &h, y);
- 
+-
++/*
 +      printf("\nkrok %d\n", ++poc);
 +      int k;
 +      for (k=0; k<15; ++k) {
 +	printf(" %lu\n",(*(unsigned long int *)(&(y[k]))));
 +      }
 +      printf(" %lu\n",(*(unsigned long int *)(&t)));
-+
++*/
 +      //printf("\n");
  #ifdef DEBUG
        printf ("%.5e %.5e %.5e %d\n", t, y[0], y[1],


More information about the scm-commits mailing list