yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00604
changes needing review.
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Tue, 2 Sep 2008 14:36:32 +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==
Vaclav, can you please verify that those channges that I made are correct?
1. yade.cpp: (I wanted more versatile compile info)
void printHelp()
{
string flags("");
flags=flags+" PREFIX=" PREFIX "\n";
flags=flags+" SUFFIX=" SUFFIX "\n";
#ifdef YADE_DEBUG
flags+=" YADE_DEBUG (debug information)\n";
#endif
#ifdef NDEBUG
flags+=" NDEBUG (heavy optimizations, static_casts everywhere, asserts() are no-ops)\n";
#endif
///........
2. SimulationController.cpp: (my simulation is soo big, that redraw
takes a lot of time, but default refresh rate is 40ms, and so when
simulation is just loaded from file it takes ages to change the
refresh rate because it is constantly redrawing, while the simulation
is not running. So I wanted to disable redraw, when simulation is not
running).
void SimulationController::timerEvent( QTimerEvent* )
{
doUpdate(); /* update the controller, like iteration number etc */
if(hasSimulation && (Omega::instance().isRunning() || syncRunning))
{
/* update GLViews */
YadeQtMainWindow::self->redrawAll(true);
if(sync && syncRunning){ Omega::instance().spawnSingleSimulationLoop(); }
}
}
thanks
--
Janek Kozicki |
Follow ups