Commit 7e59ee98 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

use better methods

parent 34923e69
......@@ -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
Supports Markdown
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