From 674585c8fec541eb20ab5486e0788b28f58057bd Mon Sep 17 00:00:00 2001 From: John Tramm Date: Thu, 21 Nov 2019 23:28:15 +0000 Subject: [PATCH] changed N_STREAMS to const defined in header rather than random_lcg.cpp --- include/openmc/distribution.h | 2 +- include/openmc/random_lcg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/openmc/distribution.h b/include/openmc/distribution.h index 28d9b9e810..e12a476ee2 100644 --- a/include/openmc/distribution.h +++ b/include/openmc/distribution.h @@ -21,7 +21,7 @@ namespace openmc { class Distribution { public: virtual ~Distribution() = default; - virtual double sample() const = 0; + virtual double sample(uint64_t * prn_seeds, int stream) const = 0; }; //============================================================================== diff --git a/include/openmc/random_lcg.h b/include/openmc/random_lcg.h index 5f0fea4944..a0daf803c2 100644 --- a/include/openmc/random_lcg.h +++ b/include/openmc/random_lcg.h @@ -10,7 +10,7 @@ namespace openmc { // Module constants. //============================================================================== -extern "C" const int N_STREAMS; +constexpr int N_STREAMS = 6; extern "C" const int STREAM_TRACKING; extern "C" const int STREAM_TALLIES; extern "C" const int STREAM_SOURCE;