Corrected a bug with modification of message timings with Issac's help
authorGagan Gupta <gagan@illinois.edu>
Fri, 16 Apr 2010 19:53:01 +0000 (14:53 -0500)
committerGagan Gupta <gagan@illinois.edu>
Fri, 16 Apr 2010 19:53:01 +0000 (14:53 -0500)
examples/bigsim/tools/rewritelog/interpolatelog.C

index 3c208f9d536117bffd36e092d92dc4dda1b49918..39fd711b930deaca3bdf873b395bb69141e147f0 100644 (file)
@@ -59,7 +59,7 @@ double map_linearly_to_interval(double val, double old_lower, double old_upper,
   if(val == old_lower)
        new_val = new_lower;
   else if(val == old_upper)
-       new_val = old_lower;
+       new_val = new_upper;
   else
        new_val = new_lower + ((val-old_lower)*(new_upper-new_lower))/(old_upper-old_lower);