Tried to fix the seeding issue, but something is wrong here...
Cleaned up Stefan's Crap
Incorrect fix
Cleaned up most of Stefans errors, I believe the code should now pass through Jenkins, but I'm not sure that it will also perform as expected. The code passes the testcases I've tried, but whether the physics of the LB_BOUNDARIES(_GPU) is correct I cannot vouch for. I've also changed a line of code that was erronously commented out by Dominic.
I appear to have fixed the lb_planar_gpu.tcl test case again, but the lb_stokes_sphere_gpu.tcl test case still fails. I think there is a mysterious factor of 2 floating around somewhere in the code. I've added several comments to where I was uncertain about a piece of code, always with // ***** (lb_boundaries.c and lbgpu.cu). For the rest I think I've removed pretty much all the mess that was there.
Removed the unsafe atol and atoi commands from the code, in particular for the random_tcl.c file, for which their implementation lead to unexpected and undesired behavior.
Resolved merge conflict.
Merge remote-tracking branch 'origin/torque' into torque
Changes necessary to get the master to compile again and to have the first wall be set.
Merge branch 'master' into bug_fix_merge
Minor safety fix