> >> if !hertzOn > >> contactPhysics = static_cast<CapillaryPhys*>(interaction->phys.get()); > >> else > >> contactPhysics = > >> static_cast<MindlinCapillaryPhys*>(interaction->phys.get()) > > How would you declare contactPhysics? > > B
With this slight change : if !hertzOn CapillaryPhys* contactPhysics = static_cast<CapillaryPhys*>(interaction->phys.get()); else MindlinCapillaryPhys* contactPhysics = static_cast<MindlinCapillaryPhys*>(interaction->phys.get()) ? _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

