← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3533: Prevent returning of a real value from void-function.

 

------------------------------------------------------------
revno: 3533
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2014-11-17 13:50:58 +0100
message:
  Prevent returning of a real value from void-function.
modified:
  lib/triangulation/FlowBoundingSphere.ipp


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

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'lib/triangulation/FlowBoundingSphere.ipp'
--- lib/triangulation/FlowBoundingSphere.ipp	2014-10-21 21:28:01 +0000
+++ lib/triangulation/FlowBoundingSphere.ipp	2014-11-17 12:50:58 +0000
@@ -143,7 +143,7 @@
 template <class Tesselation> 
 void FlowBoundingSphere<Tesselation>::averageFluidVelocity()
 {
-	if (noCache && T[!currentTes].Max_id()<=0) return 0;
+	if (noCache && T[!currentTes].Max_id()<=0) return;
 	averageRelativeCellVelocity();
 	RTriangulation& Tri = T[noCache?(!currentTes):currentTes].Triangulation();
 	int numVertex = 0;