tadd function to set simulation id - sphere - GPU-based 3D discrete element met… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit bbfdff16a7290aa16d5d2e8836555b5430f0e503 | |
parent 123496aa3901d83e7f8084934e3b23867383eff3 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 16 Sep 2014 09:22:18 +0200 | |
add function to set simulation id | |
Diffstat: | |
M python/sphere.py | 10 ++++++++++ | |
1 file changed, 10 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -626,6 +626,16 @@ class sim: | |
# All equal | |
return 0 | |
+ def id(self, sid): | |
+ ''' | |
+ Set the simulation id/name, which will be used to identify simulation | |
+ files in the output folders. | |
+ | |
+ :param sid: The desired simulation id | |
+ :type sid: str | |
+ ''' | |
+ self.sid = sid | |
+ | |
def addParticle(self, | |
x, | |
radius, |