temporary diagnostic
This commit is contained in:
parent
bf549cb31d
commit
9c10b50286
18
wrk.patch
18
wrk.patch
@ -1,7 +1,18 @@
|
|||||||
diff -up wrk/ode-initval2/msbdf.c.wrk wrk/ode-initval2/msbdf.c
|
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
|
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.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[],
|
@@ -923,6 +923,18 @@ rhs_ringmod (double t, const double y[],
|
||||||
f[13] = (-y[0] + uin1 - (ri + rg1) * y[13]) / ls1;
|
f[13] = (-y[0] + uin1 - (ri + rg1) * y[13]) / ls1;
|
||||||
f[14] = (-y[1] - (rc + rg1) * y[14]) / 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)
|
while (t < t1)
|
||||||
{
|
{
|
||||||
s = gsl_odeiv2_evolve_apply (d->e, d->c, d->s, sys, &t, t1, &h, y);
|
s = gsl_odeiv2_evolve_apply (d->e, d->c, d->s, sys, &t, t1, &h, y);
|
||||||
|
-
|
||||||
|
+/*
|
||||||
+ printf("\nkrok %d\n", ++poc);
|
+ printf("\nkrok %d\n", ++poc);
|
||||||
+ int k;
|
+ int k;
|
||||||
+ for (k=0; k<15; ++k) {
|
+ for (k=0; k<15; ++k) {
|
||||||
+ printf(" %lu\n",(*(unsigned long int *)(&(y[k]))));
|
+ printf(" %lu\n",(*(unsigned long int *)(&(y[k]))));
|
||||||
+ }
|
+ }
|
||||||
+ printf(" %lu\n",(*(unsigned long int *)(&t)));
|
+ printf(" %lu\n",(*(unsigned long int *)(&t)));
|
||||||
+
|
+*/
|
||||||
+ //printf("\n");
|
+ //printf("\n");
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf ("%.5e %.5e %.5e %d\n", t, y[0], y[1],
|
printf ("%.5e %.5e %.5e %d\n", t, y[0], y[1],
|
||||||
|
Loading…
Reference in New Issue
Block a user