yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #02017
Re: [Branch ~yade-dev/yade/trunk] Rev 1757: 3. interactions isNew doesn't exist anymore, snow code needs update for this
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Tue, 15 Sep 2009 12:34:24 +0200
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<1252939746.22668.6.camel@flux>
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 |
Follow ups
References