summaryrefslogtreecommitdiff
path: root/distinguishable.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2021-06-25 10:57:46 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2021-06-25 10:57:46 +0200
commit70b13f405bf861dd16e0ddb963293e5546599b3d (patch)
treee0931180d0f5314138257499f193281140c78d12 /distinguishable.cpp
parent9c93f4c713505499e45fbe01a61a683297e68060 (diff)
downloadlattice_glass-70b13f405bf861dd16e0ddb963293e5546599b3d.tar.gz
lattice_glass-70b13f405bf861dd16e0ddb963293e5546599b3d.tar.bz2
lattice_glass-70b13f405bf861dd16e0ddb963293e5546599b3d.zip
Partial progress towards merging BM model into global objects.
Diffstat (limited to 'distinguishable.cpp')
-rw-r--r--distinguishable.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/distinguishable.cpp b/distinguishable.cpp
index 0b70cf2..22f228a 100644
--- a/distinguishable.cpp
+++ b/distinguishable.cpp
@@ -16,12 +16,14 @@ public:
};
template <unsigned D>
-class DistinguishableSystem : public FiniteEnergySystem<D, DistinguishableState> {
+class DistinguishableSystem : public SoftSystem<D, DistinguishableState> {
public:
std::vector<double> interaction;
DistinguishableSystem(unsigned L, unsigned N, Rng& r)
- : FiniteEnergySystem<D, DistinguishableState>(L, N), interaction(N * N) {
+ : SoftSystem<D, DistinguishableState>(L), interaction(N * N) {
+ DistinguishableSystem::N = N;
+
for (double& V : interaction) {
V = r.uniform(-0.5, 0.5);
}