← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 1757: 3. interactions isNew doesn't exist anymore, snow code needs update for this

 

>   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).

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.

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).

V.





Follow ups

References