Skip to content
GitLab
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
af4e6a3f
Commit
af4e6a3f
authored
Feb 06, 2018
by
Martin Reinecke
Browse files
make test work with MPI
parent
9cbdaa07
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_laplace_operator.py
View file @
af4e6a3f
...
...
@@ -11,7 +11,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright(C) 2013-201
7
Max-Planck-Society
# Copyright(C) 2013-201
8
Max-Planck-Society
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik
# and financially supported by the Studienstiftung des deutschen Volkes.
...
...
@@ -43,9 +43,7 @@ class LaplaceOperatorTests(unittest.TestCase):
foo
=
ift
.
PS_field
(
p
,
lambda
k
:
2
*
k
**
2
)
L
=
ift
.
LaplaceOperator
(
p
,
logarithmic
=
False
)
result
=
ift
.
Field
(
p
,
val
=
2
*
2.
)
result
.
val
[
0
]
=
0.
result
.
val
[
1
]
=
0.
result
.
val
[
-
1
]
=
0.
result
=
np
.
full
(
p
.
shape
,
2
*
2.
)
result
[
0
]
=
result
[
1
]
=
result
[
-
1
]
=
0.
assert_allclose
(
L
(
foo
).
val
,
result
.
val
)
assert_allclose
(
ift
.
dobj
.
to_global_data
(
L
(
foo
).
val
)
,
result
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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