tset sid according to fluid presence - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit c76e7b620aab56cb71874ccea4c6a0f2ba6880b2
(DIR) parent f1a2d1a0ed7801216614ebe2e9d3f7ea86c53e6a
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 1 Sep 2014 14:22:57 +0200
set sid according to fluid presence
Diffstat:
M python/shear-starter.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/python/shear-starter.py b/python/shear-starter.py
t@@ -25,8 +25,12 @@ sim = sphere.sim('diffusivity-sigma0=' + str(sigma0),
fluid=True)
sim.readlast()
-sim.sid = 'shear-sigma0=' + str(sigma0) + '-c_phi=' + str(c_phi) + \
- '-c_grad_p=' + str(c_grad_p)
+if fluid:
+ sim.sid = 'shear-sigma0=' + str(sigma0) + '-c_phi=' + str(c_phi) + \
+ '-c_grad_p=' + str(c_grad_p)
+else:
+ sim.sid = 'shear-sigma0=' + str(sigma0)
+
print(sim.sid)
sim.fluid = fluid