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
7e59ee98
Commit
7e59ee98
authored
Feb 23, 2018
by
Martin Reinecke
Browse files
use better methods
parent
34923e69
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty4/domains/rg_space.py
View file @
7e59ee98
...
...
@@ -133,7 +133,7 @@ class RGSpace(StructuredDomain):
return
np
.
sqrt
(
np
.
nonzero
(
tmp
)[
0
])
*
self
.
distances
[
0
]
else
:
# do it the hard way
# FIXME: this needs to improve for MPI. Maybe unique()/gather()?
tmp
=
dobj
.
to_global_data
(
self
.
get_k_length_array
().
val
)
tmp
=
self
.
get_k_length_array
().
to_global_data
(
)
tmp
=
np
.
unique
(
tmp
)
tol
=
1e-12
*
tmp
[
-
1
]
# remove all points that are closer than tol to their right
...
...
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