yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03808
Re: container speedups?
Hi, Vaclav,
I have tried python-way and it works the same like c-one.
But the problem still appears.
There is an output from 2091:
#iter Cohesive
0 17716
1 17716
2 17716
3 17716
4 17716
5 17716
6 17716
7 17716
8 17716
9 17716
10 17716
r2092:
#iter Cohesive
0 17716
1 18535
2 18535
3 18555
4 18577
5 18658
6 18754
7 18777
8 18796
9 18834
10 18860
So, the output sufficiently differs.
Thank you
______________________________
Anton Gladkyy
2010/4/1 Václav Šmilauer <eudoxos@xxxxxxxx>
>
> > Vaclav, I have just tested r2092 on some small tests. It is faster,
> > than the previous container about 7%. Thanks a lot!
> Less than I expected, but still good :-) Thanks for reporting.
>
> > But I have found some difficulties with my CohesiveStateRPMRecorder.
> > This recorder counts how many isCohesive contacts are in simulation.
> > It seems, that it does not check all interactions after revision
> > r2092.
> >
> > Can it be because of http://bazaar.launchpad.net/%
> > 7Eyade-dev/yade/trunk/annotate/head%
> > 3A/pkg/dem/Engine/GlobalEngine/CohesiveStateRPMRecorder.cpp#L10 ?
> > if(!i->isReal()) continue;
> isReal() check if you have both geometry and physics. So it should make
> no difference.
>
> You can try doing that from python (iteration in python skips non-real
> interactions):
>
> len([1 for i in O.interactions if i.phys.isCohesive])
>
> Cheers, v.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References