problem with parallel computatio with mpi
Deal all,
I am learning how to perform parallel computation with Yade as I run quite big simulations. I followed the guide in the Yade document, section "MPI parallelization" et run a simple example vtkRecorderExam
<WARNING> Shop:562 static yade::Real yade::Shop:
kinetic energy from workers: [2335799070.
Could you please tell me why I got this error? Do I need perform some special things to run parallel computation with Yade?
Thank you in advance for your help.
Best regards
Son Nguyen
Here is the script vtkRecorderExam
import os
from yade import mpy as mp
NSTEPS=5000 #turn it >0 to see time iterations, else only initilization
numThreads = 4 # number of threads to be spawned, (in interactive mode).
#materials
young = 5e6
compFricDegree = 0.0
O.materials.
O.materials.
#add spheres
mn,mx=Vector3(
pred = pack.inAlignedB
O.bodies.
#walls (floor)
wallIds=
O.bodies.
#engines
O.engines=[
),
]
#set a custom verletDist for efficiency.
collider.verletDist = 1.5
######### RUN ##########
# customize mpy
mp.ERASE_
mp.DOMAIN_
#mp.mpirun(NSTEPS) #passive mode run
mp.MERGE_
mp.mpirun(
mp.mergeScene() #merge scene after run.
if mp.rank == 0: O.save(
#demonstrate getting stuff from workers, here we get kinetic energy from worker subdomains, notice that the master (mp.rank = 0), uses the sendCommand to tell workers to compute kineticEnergy.
if mp.rank==0:
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- NgocSon-Nguyen
- Solved:
- Last query:
- Last reply: