← Back to team overview

yade-dev team mailing list archive

changes needing review.

 

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