Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
608190b9
Commit
608190b9
authored
Jul 14, 2018
by
Philipp Arras
Browse files
Adopt mf_correlated fields to new domain distributor
parent
e8105d79
Changes
1
Show whitespace changes
Inline
Side-by-side
nifty5/library/correlated_fields.py
View file @
608190b9
...
...
@@ -79,10 +79,11 @@ def make_mf_correlated_field(s_space_spatial, s_space_energy,
pd_energy
=
PowerDistributor
(
pd_spatial
.
domain
,
p_space_energy
,
1
)
pd
=
pd_spatial
*
pd_energy
dom_distr_0
=
DomainDistributor
(
pd
.
domain
,
0
)
dom_distr_1
=
DomainDistributor
(
pd
.
domain
,
1
)
a_spatial
=
dom_distr_1
(
amplitude_model_spatial
)
a_energy
=
dom_distr_0
(
amplitude_model_energy
)
dom_distr_spatial
=
DomainDistributor
(
pd
.
domain
,
0
)
dom_distr_energy
=
DomainDistributor
(
pd
.
domain
,
1
)
a_spatial
=
dom_distr_spatial
(
amplitude_model_spatial
)
a_energy
=
dom_distr_energy
(
amplitude_model_energy
)
a
=
a_spatial
*
a_energy
A
=
pd
(
a
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment