Re: [Yade-dev] : yade --test fails after some changes in WirePM
Hi, I found the problem but I don't know how I can fix it. At this stage I just committed a few changes. I had a similar issue last year and we solved it by adding if(strainStressValues.empty()) return; // uninitialized object, don't do nothing at all in postLoad of WireMat. strainStressValues is of type vector. The point is I have two objects of this type now and one is optional so it can be uninitialized. How can I handle that? Thanks, Klaus On Fri, 13 Jan 2012 12:19:18 AM Anton Gladky wrote: > Hi Klaus, > > it would be good if you show the diff (patch). > > Thanks. > > Anton > > ___ > Mailing list: https://launchpad.net/~yade-dev > Post to : yade-dev@lists.launchpad.net > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
Re: [Yade-dev] : yade --test fails after some changes in WirePM
Hi Klaus, it would be good if you show the diff (patch). Thanks. Anton ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
Re: [Yade-dev] : yade --test fails after some changes in WirePM
A typo/error in YADE_CLASS_BASE_DOC_ATTRS_CTOR(...) ?? Le 12/01/2012 08:13, Klaus Thoeni a écrit : Hi guys, I am just adding some new capabilities to my WirePM and doing some cleaning- up. When running some tests with the new code everything is fine. But when running 'yade --test' I get this: == FAIL: testSaveAllClasses (yade.TestIO) I/O: All classes can be saved and loaded with boost::serialization -- Traceback (most recent call last): File "/home/thoeni/YADE-bzr/install/lib/yade-bzr2988/py/yade/tests/core.py", line 79, in testSaveAllClasses self.assert_(len(failed)==0,'Failed classes were: '+' '.join(failed)) AssertionError: Failed classes were: WireMat -- Any idea to what this could be related to? Thanks, Klaus ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp -- Jerome Duriez Post-Doctorant LTDS (Ecole Centrale de Lyon) 04.72.18.62.17 ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp