← Back to team overview

yade-dev team mailing list archive

Re: Disable parallel code in conditionalyEraseNonReal

 

Looking at the code again, I suspect the problem.
Stored values of linPos become invalid after erasing some interaction
(as comment [1]). This problem is in the final "for" loop of the OPENMP
block, which in fact is not parallel.
It needs to reproduce the logic of L114/115 somehow.
It sounds like a bad bug, I'm surprised that it was not visible before.
Thanks!

Bruno


https://github.com/yade/trunk/blob/e5d78906a1e5cc21abc04734a7c8e5342db15585/core/InteractionContainer.hpp#L110

On 04/06/14 10:55, Anton Gladky wrote:
> Hi Bruno,
>
> I needed to disable parallel code in conditionalyEraseNonReal because
> in some rare cases it fails. I have also filed a bug, will try to fix it in the
> nearest time.
>
> https://github.com/yade/trunk/commit/e5d78906a1e5cc21abc04734a7c8e5342db15585
>
> Anton
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp
>
>
>


-- 
_______________
Bruno Chareyre
Associate Professor
ENSE³ - Grenoble INP
Lab. 3SR
BP 53
38041 Grenoble cedex 9
Tél : +33 4 56 52 86 21
Fax : +33 4 76 82 70 43
________________



References