From 70b13f405bf861dd16e0ddb963293e5546599b3d Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 25 Jun 2021 10:57:46 +0200 Subject: Partial progress towards merging BM model into global objects. --- distinguishable.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'distinguishable.cpp') diff --git a/distinguishable.cpp b/distinguishable.cpp index 0b70cf2..22f228a 100644 --- a/distinguishable.cpp +++ b/distinguishable.cpp @@ -16,12 +16,14 @@ public: }; template -class DistinguishableSystem : public FiniteEnergySystem { +class DistinguishableSystem : public SoftSystem { public: std::vector interaction; DistinguishableSystem(unsigned L, unsigned N, Rng& r) - : FiniteEnergySystem(L, N), interaction(N * N) { + : SoftSystem(L), interaction(N * N) { + DistinguishableSystem::N = N; + for (double& V : interaction) { V = r.uniform(-0.5, 0.5); } -- cgit v1.2.3-54-g00ecf