Commit cb997558 authored by Philipp Arras's avatar Philipp Arras
Browse files

Merge! Simplify make_correlated_field

parent 40996be6
......@@ -44,13 +44,10 @@ def make_correlated_field(s_space, amplitude_model):
ht = FFTOperator(h_space, s_space)
p_space = amplitude_model.value.domain[0]
power_distributor = PowerDistributor(h_space, p_space)
# FIXME Remove tau and phi stuff from here. Should not be necessary
position = MultiField.from_dict({
'xi': Field.from_random('normal', h_space),
'tau': amplitude_model.position['tau'],
'phi': amplitude_model.position['phi']})
position = MultiField.from_dict({'xi': Field.full(h_space, 0.)})
xi = Variable(position)['xi']
A = power_distributor(amplitude_model)
correlated_field_h = A * xi
correlated_field = ht(correlated_field_h)
......
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