Commit 0463763b authored by Philipp Frank's avatar Philipp Frank

fixup

parent d79ada59
Pipeline #64203 passed with stages
in 9 minutes and 29 seconds
...@@ -328,7 +328,7 @@ class _Amplitude(Operator): ...@@ -328,7 +328,7 @@ class _Amplitude(Operator):
fluctuations) fluctuations)
else: else:
op = (Adder(vol0)) @ (sig_fluc*(azm_expander @ azm.one_over())*op) op = (Adder(vol0)) @ (sig_fluc*(azm_expander @ azm.one_over())*op)
self._fluct = fluctuations self._fluc = fluctuations
self.apply = op.apply self.apply = op.apply
...@@ -363,7 +363,8 @@ class CorrelatedFieldMaker: ...@@ -363,7 +363,8 @@ class CorrelatedFieldMaker:
offset_amplitude_stddev, offset_amplitude_stddev,
prefix + 'zeromode', prefix + 'zeromode',
N) N)
zm = _Distributor(dofdex,zm.target,UnstructuredDomain(total_N)) @ zm if total_N > 0:
zm = _Distributor(dofdex,zm.target,UnstructuredDomain(total_N)) @ zm
return CorrelatedFieldMaker(zm, prefix, total_N) return CorrelatedFieldMaker(zm, prefix, total_N)
def add_fluctuations(self, def add_fluctuations(self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment