← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2426: 1. Fixes issue, described in http://www.mail-archive.com/yade-dev@xxxxxxxxxxxxxxxxxxx/msg05009.html

 

------------------------------------------------------------
revno: 2426
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-09-08 09:55:05 +0200
message:
  1. Fixes issue, described in http://www.mail-archive.com/yade-dev@xxxxxxxxxxxxxxxxxxx/msg05009.html
modified:
  pkg/dem/meta/Shop.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/dem/meta/Shop.cpp'
--- pkg/dem/meta/Shop.cpp	2010-09-02 09:11:04 +0000
+++ pkg/dem/meta/Shop.cpp	2010-09-08 07:55:05 +0000
@@ -1143,8 +1143,8 @@
     b->ks = 2.0/7.0 * m/tc/tc * ( Mathr::PI*Mathr::PI + Mathr::Pow(Mathr::Log(es),2) );
     b->cs = -2.0/7.0 * m/tc * Mathr::Log(es);
 
-    if (Mathr::FAbs(b->cn) <= Mathr::ZERO_TOLERANCE ) b->cn=0;
-    if (Mathr::FAbs(b->cs) <= Mathr::ZERO_TOLERANCE ) b->cs=0;
+    if (abs(b->cn) <= Mathr::ZERO_TOLERANCE ) b->cn=0;
+    if (abs(b->cs) <= Mathr::ZERO_TOLERANCE ) b->cs=0;
 }
 
 /* This function is copied almost verbatim from scientific python, module Visualization, class ColorScale