[cmor] 25/190: 2010-06-09 : cmor_axis non-monotnic error was showing incoorect set of bad values

Alastair McKinstry mckinstry at moszumanska.debian.org
Tue Jul 21 12:54:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository cmor.

commit 4011ce8eaec03314f7aac7aa994a1631e3bc9a80
Author: Charles Doutriaux <doutriaux1 at llnl.gov>
Date:   Wed Jun 9 12:12:30 2010 -0700

    2010-06-09 : cmor_axis non-monotnic error was showing incoorect set of bad values
---
 RELEASE-NOTES   | 1 +
 Src/cmor_axes.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 669db41..46d29d8 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -1,3 +1,4 @@
+2010-06-09 : cmor_axis non-monotnic error was showing incoorect set of bad values
 2010-06-09 : changed absolute mean error from CRITICAL to NORMAL if less than an order of magnitude off
 2010-06-09 : tables generated with min/max now being 3 sigma (from 2) and (20% form 5%)
 2010-06-09 : Coord: depth_coord was wrongly defined as positive up, fixed
diff --git a/Src/cmor_axes.c b/Src/cmor_axes.c
index ed69d26..f1fe4d6 100644
--- a/Src/cmor_axes.c
+++ b/Src/cmor_axes.c
@@ -469,7 +469,7 @@ int cmor_check_monotonic(double *values,int length, char *name,int isbounds, int
 	  break;
 	}
 	else {
-	  snprintf(msg,CMOR_MAX_STRING,"axis %s has non monotonic values : %lf, %lf and  %lf, %lf",name,values[2*i],values[2*i+1],values[2*i+2],values[2*i+3]);
+	  snprintf(msg,CMOR_MAX_STRING,"axis %s has non monotonic values : %lf, %lf and  %lf",name,values[i],values[i+1],values[i+2]);
 	  cmor_handle_error(msg,CMOR_CRITICAL);
 	}
       }
@@ -553,7 +553,7 @@ int cmor_check_monotonic(double *values,int length, char *name,int isbounds, int
       /* ok now check the monotonic again */
       for (i=0;i<length-2;i++) {
 	if (((values[i]-values[i+1])/(values[i+1]-values[i+2]))<0.) {
-	  snprintf(msg,CMOR_MAX_STRING,"axis %s has non monotonic values : %lf, %lf and  %lf, %lf",name,values[2*i],values[2*i+1],values[2*i+2],values[2*i+3]);
+	  snprintf(msg,CMOR_MAX_STRING,"axis %s has non monotonic values : %lf, %lf and  %lf",name,values[i],values[i+1],values[i+2]);
 	  cmor_handle_error(msg,CMOR_CRITICAL);
 	}
       }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cmor.git



More information about the debian-science-commits mailing list