| 50 |
|
#ifndef INTEGRATORS_VELOCITIZER_HPP |
| 51 |
|
#define INTEGRATORS_VELOCITIZER_HPP |
| 52 |
|
#include "brains/SimInfo.hpp" |
| 53 |
+ |
#include "math/ParallelRandNumGen.hpp" |
| 54 |
|
|
| 55 |
|
namespace oopse { |
| 56 |
|
|
| 60 |
|
*/ |
| 61 |
|
class Velocitizer { |
| 62 |
|
public: |
| 63 |
< |
Velocitizer(SimInfo* info) : info_(info) {} |
| 64 |
< |
|
| 63 |
> |
Velocitizer(SimInfo* info); |
| 64 |
> |
virtual ~Velocitizer(); |
| 65 |
> |
|
| 66 |
|
void velocitize(double temperature); |
| 67 |
|
|
| 68 |
|
void removeComDrift(); |
| 71 |
|
|
| 72 |
|
SimInfo* info_; |
| 73 |
|
|
| 74 |
+ |
/**@todo random number generator should have same interface*/ |
| 75 |
+ |
#ifndef IS_MPI |
| 76 |
+ |
MTRand* randNumGen_; |
| 77 |
+ |
#else |
| 78 |
+ |
ParallelRandNumGen* randNumGen_; |
| 79 |
+ |
#endif |
| 80 |
|
}; |
| 81 |
|
|
| 82 |
|
} |