Commit 84dda6a7 authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

If seed <=1, then use time() to generate seed

parent 8c0b4073
...@@ -418,7 +418,7 @@ void CudaIntegrateLangevinStepKernel::initialize(const System& system, const Lan ...@@ -418,7 +418,7 @@ void CudaIntegrateLangevinStepKernel::initialize(const System& system, const Lan
// if LangevinIntegrator seed does not equal default value or is less than/equal to 0, then // if LangevinIntegrator seed does not equal default value or is less than/equal to 0, then
// set gpu seed and redo random values // set gpu seed and redo random values
if( integrator.getRandomNumberSeed() < 1 ){ if( integrator.getRandomNumberSeed() <= 1 ){
_gpuContext* gpu = data.gpu; _gpuContext* gpu = data.gpu;
gpu->seed = static_cast<unsigned long>( integrator.getRandomNumberSeed() ); gpu->seed = static_cast<unsigned long>( integrator.getRandomNumberSeed() );
gpuInitializeRandoms( gpu ); gpuInitializeRandoms( gpu );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment