19 lines
588 B
C++
Executable File
19 lines
588 B
C++
Executable File
#ifndef RANDOM_NUMBERS_GENERATOR_H
|
|
#define RANDOM_NUMBERS_GENERATOR_H
|
|
|
|
#include <memory>
|
|
#include "simulation/parameter.h"
|
|
#include "simulation/random_numbers.h"
|
|
|
|
namespace generator {
|
|
|
|
// return a shared_ptr to a RandomNumbers object
|
|
// parameter has to have a json-object "RandomNumbers" in its root object
|
|
// "RandomNumbers" has to contain a json-double "Seed" which specifies the seed
|
|
// on mpi-process 0 (a different seed is calculated for all other mpi-processes)
|
|
std::shared_ptr<RandomNumbers> buildRandomNumbers(Parameter& parameter);
|
|
|
|
};
|
|
|
|
#endif /* RANDOM_NUMBERS_GENERATOR_H */
|