getStress does not fail for non NormShearPhys intrs
Hello, As reporetd in [1], BubblePhys (directly derived from IPhys) passes getStress without error. In the function, NormShearPhys* nsi=YADE_CAST<NormShearPhys*> ( I->phys.get() ); nsi->shearForce is used, however it is something strange now in that case..
Should be fixed for this minor case (as majority of IPhys classes is derived from NormShearPhy)?
cheers Jan
[1] https://answers.launchpad.net/yade/+question/432620
Original bug report by Jan Stránský on 2017-01-07 : https://bugs.launchpad.net/yade/+bug/1654753
Edited by Janek Kozicki