S
stringy
Bonjour,
I have a program which has 'Objects' that move around in a 3d space,
partly according to the gsl random number generator. The 3d space is
split into two nodes which control the objects in it, with each space
being split into voxels. In the 'border' voxels, each node follows the
objects in them, and as such I need them to be generating the same
random number for the object in both nodes. As far as I am aware this
can be achieved by starting with the same gsl_rng state, and I'm trying
to send this across with MPI when one node becomes aware of an object
from the other node moving into the border voxels.
At present I belive this is achieved using
and I've implemented this like so:
Now I understand that this probably miles wrong, but C++ isn't my
mainstay, and as such I need any help I can get! If I sound very wide
of the mark with the above, a pointer in the right direction would be
appreciated.
Thanks.
I have a program which has 'Objects' that move around in a 3d space,
partly according to the gsl random number generator. The 3d space is
split into two nodes which control the objects in it, with each space
being split into voxels. In the 'border' voxels, each node follows the
objects in them, and as such I need them to be generating the same
random number for the object in both nodes. As far as I am aware this
can be achieved by starting with the same gsl_rng state, and I'm trying
to send this across with MPI when one node becomes aware of an object
from the other node moving into the border voxels.
At present I belive this is achieved using
and I've implemented this like so:
Now I understand that this probably miles wrong, but C++ isn't my
mainstay, and as such I need any help I can get! If I sound very wide
of the mark with the above, a pointer in the right direction would be
appreciated.
Thanks.