yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #12646
[Branch ~yade-pkg/yade/git-trunk] Rev 3854: Fix the debug build that failed to compile due to a mistake in pkg/dem/Polyhedra.cpp
------------------------------------------------------------
revno: 3854
committer: Francois <francois.kneib@xxxxxxxxx>
timestamp: Wed 2016-04-27 10:59:57 +0200
message:
Fix the debug build that failed to compile due to a mistake in pkg/dem/Polyhedra.cpp
modified:
pkg/dem/Polyhedra.cpp
--
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 'pkg/dem/Polyhedra.cpp'
--- pkg/dem/Polyhedra.cpp 2016-04-20 08:56:53 +0000
+++ pkg/dem/Polyhedra.cpp 2016-04-27 08:59:57 +0000
@@ -486,8 +486,8 @@
//PFC3d SlipModel, is using friction angle. CoulombCriterion
Real ratio = sqrt(maxFs) / shearForce.norm();
if (std::isinf(ratio)) {
- LOG_DEBUG(shearForce.squaredNorm() > maxFs && maxFs); // the condition should be 1 (we are in this branch), but is actually 0
- LOG_DEBUG(shearForce); // should be (0,0,0)
+ LOG_DEBUG("shearForce.squaredNorm() > maxFs && maxFs: " << (shearForce.squaredNorm() > maxFs && maxFs)); // the condition should be 1 (we are in this branch), but is actually 0
+ LOG_DEBUG("shearForce: "<<shearForce); // should be (0,0,0)
ratio = 0;
}