Václav Šmilauer said: (by the date of Mon, 14 Sep 2009 16:49:06 +0200)
3. interactions isNew doesn't exist anymore, snow code needs update for
this
Have a look at Interaction::isFresh() for this (deliberately named
differently, to not be confused with the old meaning of isNew).
yes, I noticed that. I'll check this later, or maybe my
snow-successor, Alsidiq will.
For the boost::serialization code that I disabled in snow code, it was
because if you #define YADE_BOOST_SERIALIZATION in ClassFactory.hpp
(commented out by default), boost::serialization code will be generated
for all classes automatically inside REGISTER_SERIALIZABLE and
BshSnowGrain will error out as the class will be registered twice IIRC.
OK, that's clear.
The compilation is dead slow with boost::serialization however (like 10x
slower?) and saving via b::s throws exception about unregistered class,
but I didn't find which one -- if you want to try.
Omega().saveXML('file.xml') saves using b::s (defined in
yadeWrapper.cpp).
yes, I remember that it's hard to identify which class isn't
registered. I wonder why compilation gets so slow. And maybe it's
fixed in boost 1.40 ? Also, I'm sure that save time is roughly 10x
faster with boost serialization. I've seen it happening when saving
my voxel data with boost and saving with yade.
--
Janek Kozicki |
___
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