← Back to team overview

yade-users team mailing list archive

Re: [Question #647852]: Using openmp in a python script.

 

Question #647852 on Yade changed:
https://answers.launchpad.net/yade/+question/647852

Bruno Chareyre proposed the following answer:
>so I re-phrase my question: Is there a possible way on how I could loop
through the objects and addforces every timestep without compromising on
the performance?

Does it mean that the question is unrelated to OpenMP, and that the real problem is the inefficiency of python loops (not a surprise)?
A cure could be to implement the loops in c++, i.e. give a python array to a yade module and let it loop (in c++) through the data and set values.

Bruno

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.