← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2790: 1. Make trunk compilable with Eigen3 (coming soon). No performance test results yet.

 

------------------------------------------------------------
revno: 2790
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Thu 2011-03-17 16:57:57 +0100
message:
  1. Make trunk compilable with Eigen3 (coming soon). No performance test results yet.
modified:
  core/Cell.hpp


--
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 'core/Cell.hpp'
--- core/Cell.hpp	2011-02-02 08:13:42 +0000
+++ core/Cell.hpp	2011-03-17 15:57:57 +0000
@@ -105,7 +105,8 @@
 	// temporary, will be removed in favor of more descriptive setBox(...)
 	void setRefSize(const Vector3r& s){
 		// if refSize is set to the current size and the cell is a box (used in older scripts), say it is not necessary
-		if(s==_size && hSize==hSize.diagonal().asDiagonal()){ LOG_WARN("Setting O.cell.refSize=O.cell.size is useless, O.trsf=Matrix3.Identity is enough now."); }
+		Matrix3r hSizeEigen3=hSize.diagonal().asDiagonal();		//Eigen3 support
+		if(s==_size && hSize==hSizeEigen3){ LOG_WARN("Setting O.cell.refSize=O.cell.size is useless, O.trsf=Matrix3.Identity is enough now."); }
 		else {LOG_WARN("Setting Cell.refSize is deprecated, use Cell.setBox(...) instead.");}
 		setBox(s); postLoad(*this);
 	} 


Follow ups