[Avida-SVN] r1579 - in development: source/main tests/_task_optimize_lim_res
goingssh at myxo.css.msu.edu
goingssh at myxo.css.msu.edu
Mon May 21 05:18:51 PDT 2007
Author: goingssh
Date: 2007-05-21 08:18:51 -0400 (Mon, 21 May 2007)
New Revision: 1579
Removed:
development/tests/_task_optimize_lim_res/expected/
Modified:
development/source/main/cTaskLib.cc
Log:
fixing optimize tests
Modified: development/source/main/cTaskLib.cc
===================================================================
--- development/source/main/cTaskLib.cc 2007-05-21 00:53:23 UTC (rev 1578)
+++ development/source/main/cTaskLib.cc 2007-05-21 12:18:51 UTC (rev 1579)
@@ -2181,8 +2181,8 @@
x = tempX / tot;
y = tempY / tot;
} else {
- x = double(ctx.GetOutputBuffer()[0]) / 0xffffffff;
- y = double(ctx.GetOutputBuffer()[1]) / 0xffffffff;
+ x = abs(double(ctx.GetOutputBuffer()[0]) / 0xffffffff);
+ y = abs(double(ctx.GetOutputBuffer()[1]) / 0xffffffff);
}
switch(function) {
More information about the Avida-cvs
mailing list