← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2986: - point to the "allowBiggerThanPeriod" flag in the LOG_FATAL message.

 

------------------------------------------------------------
revno: 2986
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
branch nick: trunk
timestamp: Mon 2011-12-19 15:26:54 +0100
message:
  - point to the "allowBiggerThanPeriod" flag in the LOG_FATAL message.
modified:
  pkg/common/InsertionSortCollider.cpp


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/common/InsertionSortCollider.cpp'
--- pkg/common/InsertionSortCollider.cpp	2011-12-16 19:53:43 +0000
+++ pkg/common/InsertionSortCollider.cpp	2011-12-19 14:26:54 +0000
@@ -471,7 +471,7 @@
 			else {periods[axis]=(pmn1==pmx1)? pmn1 : -pmn2; return true;}
 		} else if(unlikely((pmn1!=pmx1) || (pmn2!=pmx2))){
 			Real span=(pmn1!=pmx1?mx1-mn1:mx2-mn2); if(span<0) span=dim-span;
-			LOG_FATAL("Body #"<<(pmn1!=pmx1?id1:id2)<<" spans over half of the cell size "<<dim<<" (axis="<<axis<<", min="<<(pmn1!=pmx1?mn1:mn2)<<", max="<<(pmn1!=pmx1?mx1:mx2)<<", span="<<span<<")");
+			LOG_FATAL("Body #"<<(pmn1!=pmx1?id1:id2)<<" spans over half of the cell size "<<dim<<" (axis="<<axis<<", min="<<(pmn1!=pmx1?mn1:mn2)<<", max="<<(pmn1!=pmx1?mx1:mx2)<<", span="<<span<<", see flag allowBiggerThanPeriod)");
 			throw runtime_error(__FILE__ ": Body larger than half of the cell size encountered.");
 		}		
 		periods[axis]=(int)(pmn1-pmn2);