yade-users team mailing list archive
Mailing list archive
Re: [Question #700022]: where shearForce in Law2_ScGeom_FrictPhys_CundallStrack is updated?
Question #700022 on Yade changed:
Status: Open => Answered
Jan Stránský proposed the following answer:
please link the source as a link to our gitlab repository, like .
shearForce is not updated the same way as normalForce (from code point of view), becase shearForce is at  declared as a reference (see e.g.  on the topic what c++ reference is or google "c++ pointer reference" or something like that).
So shearForce here is alias / is equivalent to phys->shearForce. It is modified "in place".
Therefore every time shearForce is "computed", phys->shearForce is actually updated in place.
You received this question notification because your team yade-users is
an answer contact for Yade.