← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2007: Fix a compile error when openMP is not in features.

 

------------------------------------------------------------
revno: 2007
committer: Bruno Chareyre <bchareyre@r1arduina>
branch nick: trunk
timestamp: Thu 2010-02-04 16:44:04 +0100
message:
  Fix a compile error when openMP is not in features.
modified:
  pkg/common/DataClass/VelocityBins.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/DataClass/VelocityBins.cpp'
--- pkg/common/DataClass/VelocityBins.cpp	2009-12-09 17:11:51 +0000
+++ pkg/common/DataClass/VelocityBins.cpp	2010-02-04 15:44:04 +0000
@@ -108,7 +108,7 @@
 		}
 	}
 #else
-	void VelocityBins::binVelSqInitialize(Real vSqInit=0.){ FOREACH(Bin& bin, bins) bin.currMaxVelSq=vSqInit; }
+	void VelocityBins::binVelSqInitialize(Real vSqInit){ FOREACH(Bin& bin, bins) bin.currMaxVelSq=vSqInit; }
 	void VelocityBins::binVelSqUse(body_id_t id, Real velSq){
 		Real& maxVelSq(bins[bodyBins[id]].currMaxVelSq);
 		maxVelSq=max(maxVelSq,velSq);