Fixing stupid error.
authorIsaac Dooley <idooley2@illinois.edu>
Fri, 18 May 2007 19:17:19 +0000 (19:17 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Fri, 18 May 2007 19:17:19 +0000 (19:17 +0000)
examples/bigsim/tools/rewritelog/interpolatelog.C

index d4e8dbd522e1fc1d535889042ab539cb1342f69c..6fb2cfe41839d5264692f320ed0c8b43b74a40fa 100644 (file)
@@ -56,9 +56,9 @@ extern int currTlineIdx;
 double map_linearly_to_interval(double val, double old_lower, double old_upper, double new_lower, double new_upper){
   double new_val;
 
-  if(val = old_lower)
+  if(val == old_lower)
        new_val = new_lower;
-  else if(val = old_upper)
+  else if(val == old_upper)
        new_val = old_lower;
   else
        new_val = new_lower + ((val-old_lower)*(new_upper-new_lower))/(old_upper-old_lower);