Category : simulation

I am trying to save and load the state of b2World in order to resume a simulation at a later time, but with the states of the Collision Manager, etc being exactly maintained. What is the best way to do this (without getting into library internals, and having to use boost serialize while monitoring public/private ..

Read more

So I’m trying to run this sim program for a class that makes us build a Bet class using sets. Here’s the class definition: class Bet2{ private: set<int> mainNumbers; set<int> luckyNumbers; public: Bet2(); void show() const; set<int> getMainNumbers(); set<int> getLuckyNumbers(); }; So I decided to use the random lib, since the rand() function that they ..

Read more

I am attempting to implement a CUDA N-body Barnes-Hut algorithm based on this: https://iss.oden.utexas.edu/Publications/Papers/burtscher11.pdf , following the implementation: https://github.com/IntelligentSoftwareSystems/Galois/blob/master/lonestar/scientific/gpu/barneshut/bh.cu My code works when I launch just one thread and one block, this is obviously not the point of using CUDA though. When I try and launch the kernel on more than one thread it seems ..

Read more