Error message with povray
Dear all,
I got the following error messages while running bingle_vis.py, I would thank you very much if you can help me out with this.
Bests,
Thanh.
-bash-3.2$ mpirun -np 2 `which mpipython` bingle_vis.py
CSubLatticeCont
slave started at local/global rank 0 / 1
No handlers could be found for logger "esys.lsm.util"
Traceback (most recent call last):
File "bingle_vis.py", line 60, in ?
snapshot(
File "bingle_vis.py", line 30, in snapshot
size=[800,600]
File "/home/
self.
File "/home/
self.
File "/home/
process.run()
File "/home/
self.
File "/home/
close_fds=True
File "/usr/lib64/
(p2cread, p2cwrite,
File "/usr/lib64/
errwrite = stderr.fileno()
AttributeError: 'bool' object has no attribute 'fileno'
Below is the code for bingle_vis.py
# bingle_vis.py
from esys.lsm import *
from esys.lsm.util import Vec3, BoundingBox
from esys.lsm.vis import povray
def snapshot(
pkg = povray
scene = pkg.Scene()
for pp in particles:
povsphere = pkg.Sphere(
povsphere.
scene.
camera = scene.getCamera()
camera.
camera.
camera.
scene.render(
offScreen=True,
interactive=
fileName=
size=[800,600]
)
return
#instantiate a simulation object and initialise the neighbour search algorithm:
sim = LsmMpi(
sim.initNeighbo
#specify the spatial domain for the simulation:
domain = BoundingBox(
sim.setSpatialD
#add the first particle to the domain:
particle=
particle.
sim.createParti
#add the second particle to the domain:
particle=
particle.
sim.createParti
#specify the type of interactions between colliding particles:
sim.createInter
#specify the number of timesteps and timestep increment:
sim.setNumTimeS
sim.setTimeStep
#Execute the simulation:
N_max = sim.getNumTimeS
n=0
for n in range (N_max):
sim.runTimeStep()
if (n%100==0):
particles = sim.getParticle
snapshot(
n += 1
sim.exit()
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Vince Boros
- Solved:
- Last query:
- Last reply: