← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2258: Blocking the crashing string in ElasticContactLaw

 

Hi guys,

In order to investigate why CFpm does not work in new yade version, I tried
to compile version 2258 with wm3 features (just did a "scons features='wm3'
" after a first successful default build), but I got this compilation error:

In file included from /.../build-wm3/plugins3.cpp:2:
/.../yade/pkg/dem/DataClass/InteractionGeometry/Dem3DofGeom_FacetSphere.cpp:
In member function 'virtual Vector3r
Dem3DofGeom_FacetSphere::scaleDisplacementT(Real)':
/.../yade/pkg/dem/DataClass/InteractionGeometry/Dem3DofGeom_FacetSphere.cpp:46:
error: no match for 'operator*' in '2 * diff'
scons: *** [/.../build-wm3/plugins3.os] Error 1

Is it due to a 'non compatibility' to wm3, or did I miss something in my
compilation order?

Thanks for advices

  Luc


2010/5/28 <noreply@xxxxxxxxxxxxx>

> ------------------------------------------------------------
> revno: 2258
> fixes bug(s): https://launchpad.net/bugs/585898
> committer: Anton Gladky <gladky.anton@xxxxxxxxx>
> branch nick: trunk
> timestamp: Fri 2010-05-28 00:07:26 +0200
> message:
>  Blocking the crashing string in ElasticContactLaw
> modified:
>  pkg/dem/Engine/GlobalEngine/ElasticContactLaw.cpp
>
>
> --
> lp:yade
> https://code.launchpad.net/~yade-dev/yade/trunk<https://code.launchpad.net/%7Eyade-dev/yade/trunk>
>
> Your team Yade developers is subscribed to branch lp:yade.
> To unsubscribe from this branch go to
> https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription<https://code.launchpad.net/%7Eyade-dev/yade/trunk/+edit-subscription>
>
> === modified file 'pkg/dem/Engine/GlobalEngine/ElasticContactLaw.cpp'
> --- pkg/dem/Engine/GlobalEngine/ElasticContactLaw.cpp   2010-05-26 14:44:07
> +0000
> +++ pkg/dem/Engine/GlobalEngine/ElasticContactLaw.cpp   2010-05-27 22:07:26
> +0000
> @@ -127,7 +127,9 @@
>        Real trialFsSq = trialFs.squaredNorm();
>        if(trialFsSq>maxFsSq){
>                Real multiplier=sqrt(maxFsSq/trialFsSq);
> -               geom->scaleDisplacementT(multiplier); trialFs*=multiplier;}
> +               //geom->scaleDisplacementT(multiplier);
> +               trialFs*=multiplier;
> +       }
>        phys->shearForce=trialFs;
>
>  applyForceAtContactPoint(phys->normalForce+trialFs,geom->contactPoint,contact->getId1(),geom->se31.position,contact->getId2(),geom->se32.position,scene);
>  }
>
>
> _______________________________________________
> 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