yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06186
[Branch ~yade-dev/yade/trunk] Rev 2553: - disable the last comparison on velocities (see https://lists.launchpad.net/yade-dev/msg06178.html)
------------------------------------------------------------
revno: 2553
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
branch nick: yade
timestamp: Mon 2010-11-15 18:19:37 +0100
message:
- disable the last comparison on velocities (see https://lists.launchpad.net/yade-dev/msg06178.html)
modified:
py/tests/cohesive-chain.py
--
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 'py/tests/cohesive-chain.py'
--- py/tests/cohesive-chain.py 2010-11-12 18:44:15 +0000
+++ py/tests/cohesive-chain.py 2010-11-15 17:19:37 +0000
@@ -2,7 +2,7 @@
# 2010 © Bruno Chareyre <bruno.chareyre@xxxxxxxxxxxxxxx>
'''
-Motion of a "sinusoidal" beam made of cylinders
+Motion of a "sinusoidal" beam made of cylinders. The test checks the position and velocity of the free end of the bending beam subjected to gravitational load. It is similar to scripts/test/chained-cylinder-spring.py but with less elements. positions and velocity are compared during the transient oscillations, only positions are compared for the larger time since residual velocity is compiler-dependent (see https://lists.launchpad.net/yade-dev/msg06178.html).
'''
import unittest
@@ -58,4 +58,6 @@
v2=O.bodies[0].state.vel[1];p2=O.bodies[0].state.pos[1]
#print v2,p2
self.assertTrue(abs(tv1-v1)<abs(tolerance*tv1) and abs(tp1-p1)<abs(tolerance*tp1))
- self.assertTrue(abs(tv2-v2)<abs(tolerance*tv2) and abs(tp2-p2)<abs(tolerance*tp2))
+ self.assertTrue(abs(tp2-p2)<abs(tolerance*tp2))
+ #self.assertTrue(abs(tv2-v2)<abs(tolerance*tv2) and abs(tp2-p2)<abs(tolerance*tp2)) #velocity comparison disabled, see comment above
+
\ No newline at end of file