← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2787: 1. Small changes in installation section.

 

------------------------------------------------------------
revno: 2787
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Thu 2011-03-17 13:56:51 +0100
message:
  1. Small changes in installation section. 
  2. voxelPorosityTriaxial doctests are transformed to a simple source code demonstration due to results instability (candidate to --checks section http://www.mail-archive.com/yade-dev@xxxxxxxxxxxxxxxxxxx/msg06635.html )
  3. Added initial sqlite database of performances on different machines.
added:
  scripts/test/performance/performance.db
modified:
  doc/sphinx/installation.rst
  py/utils.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 'doc/sphinx/installation.rst'
--- doc/sphinx/installation.rst	2011-03-15 08:17:29 +0000
+++ doc/sphinx/installation.rst	2011-03-17 12:56:51 +0000
@@ -124,7 +124,9 @@
 			mkdir /etc/portage -p;\
 			echo "media-libs/gd fontconfig jpeg png truetype" >>/etc/portage/package.use
 			
+		* Some additional commands, which can be usefull::
 			
+			ln -s /usr/lib/python2.6/site-packages/numpy/core/include/numpy/ /usr/include/
 
 Compilation
 ^^^^^^^^^^^

=== modified file 'py/utils.py'
--- py/utils.py	2011-03-17 09:40:47 +0000
+++ py/utils.py	2011-03-17 12:56:51 +0000
@@ -512,18 +512,18 @@
 	:param offset: offset distance
 	:return: the porosity of the sample inside given volume
 
-	Example invocation:
-		>>> from yade import utils
-		>>> O.reset()
-		>>> rAvg=0.03
-		>>> TriaxialTest(numberOfGrains=200,radiusMean=rAvg).load()
-		>>> O.dt=-1
-		>>> O.run(1000)
-		>>> O.engines[4].porosity
+	Example invocation::
+	
+		from yade import utils
+		rAvg=0.03
+		TriaxialTest(numberOfGrains=200,radiusMean=rAvg).load()
+		O.dt=-1
+		O.run(1000)
+		O.engines[4].porosity
 		0.44007807740143889
-		>>> utils.voxelPorosityTriaxial(O.engines[4],200,0)
+		utils.voxelPorosityTriaxial(O.engines[4],200,0)
 		0.44055412500000002
-		>>> utils.voxelPorosityTriaxial(O.engines[4],200,rAvg)
+		utils.voxelPorosityTriaxial(O.engines[4],200,rAvg)
 		0.36798199999999998
 	"""
 	p_bottom	= O.bodies[triax.wall_bottom_id].state.se3[0]

=== added file 'scripts/test/performance/performance.db'
Binary files scripts/test/performance/performance.db	1970-01-01 00:00:00 +0000 and scripts/test/performance/performance.db	2011-03-17 12:56:51 +0000 differ

Follow ups