← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3790: Open GUI in packs/packs.py after 1 step to show all elements.

 

------------------------------------------------------------
revno: 3790
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2014-01-06 14:59:54 +0100
message:
  Open GUI in packs/packs.py after 1 step to show all elements.
modified:
  examples/packs/packs.py


--
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 'examples/packs/packs.py'
--- examples/packs/packs.py	2013-10-04 11:58:44 +0000
+++ examples/packs/packs.py	2014-01-06 13:59:54 +0000
@@ -112,11 +112,6 @@
 
 O.bodies.append(wall((0,0,-10),axis=2))
 
-try:
-	from yade import qt
-	qt.Controller()
-	qt.View()
-except ImportError: pass
 
 O.engines=[
 	#SubdomainBalancer(colorize=True,initRun=True,iterPeriod=100),
@@ -153,6 +148,12 @@
 
 # we don't care about physical accuracy here, (over)critical step is fine as long as the simulation doesn't explode
 O.dt=PWaveTimeStep()
+O.run(1,True)
+try:
+	from yade import qt
+	qt.Controller()
+	qt.View()
+except ImportError: pass
 O.saveTmp()
 O.timingEnabled=True
 #O.run(10000,True)