20#ifndef OPM_UDQ_PARAMS_HPP
21#define OPM_UDQ_PARAMS_HPP
36 static UDQParams serializationTestObject();
39 int rand_seed()
const noexcept;
40 void reseedRNG(
int seed);
41 double range()
const noexcept;
42 double undefinedValue()
const noexcept;
43 double cmpEpsilon()
const noexcept;
45 std::mt19937& sim_rng();
46 std::mt19937& true_rng();
48 bool operator==(
const UDQParams& data)
const;
50 template<
class Serializer>
53 serializer(reseed_rng);
54 serializer(random_seed);
55 serializer(value_range);
56 serializer(undefined_value);
60 auto now = std::chrono::high_resolution_clock::now();
61 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(now.time_since_epoch());
62 this->m_true_rng.seed( ns.count() );
63 this->m_sim_rng.seed( this->random_seed );
71 double undefined_value;
74 std::mt19937 m_sim_rng;
75 std::mt19937 m_true_rng;
Class for (de-)serializing.
Definition Serializer.hpp:84
bool isSerializing() const
Returns true if we are currently doing a serialization operation.
Definition Serializer.hpp:183
Definition UDQParams.hpp:31
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30