Skip to content
Snippets Groups Projects

Fix fluctuating LB with zero centered pdf storage

Merged RudolfWeeber requested to merge RudolfWeeber/lbmpy:fluct_zero_centered into master
All threads resolved!
Compare and
3 files
+ 266
139
Preferences
Compare changes
Files
3
@@ -376,8 +376,8 @@ class LBMConfig:
@@ -376,8 +376,8 @@ class LBMConfig:
if not self.compressible and self.method in (Method.MONOMIAL_CUMULANT, Method.CUMULANT):
if not self.compressible and self.method in (Method.MONOMIAL_CUMULANT, Method.CUMULANT):
raise ValueError("Incompressible cumulant-based methods are not supported (yet).")
raise ValueError("Incompressible cumulant-based methods are not supported (yet).")
if self.zero_centered and (self.entropic or self.fluctuating):
if self.zero_centered and self.entropic:
raise ValueError("Entropic and fluctuating methods can only be created with `zero_centered=False`.")
raise ValueError("Entropic methods can only be created with `zero_centered=False`.")
# Check or infer delta-equilibrium
# Check or infer delta-equilibrium
if self.delta_equilibrium is not None:
if self.delta_equilibrium is not None: