We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b8fbd commit 1708ab2Copy full SHA for 1708ab2
pySDC/implementations/datatype_classes/mesh.py
@@ -70,12 +70,11 @@ def __abs__(self):
70
float: absolute maximum of all mesh values
71
"""
72
# take absolute values of the mesh values
73
- local_absval = float(np.amax(np.ndarray.__abs__(self)))
+ local_absval = float(np.max(np.ndarray.__abs__(self)))
74
75
if self.comm is not None:
76
- if self.comm.Get_size() > 1:
77
- global_absval = 0.0
78
- global_absval = max(self.comm.allreduce(sendobj=local_absval, op=MPI.MAX), global_absval)
+ if self.comm.size > 1:
+ global_absval = self.comm.allreduce(sendobj=local_absval, op=MPI.MAX)
79
else:
80
global_absval = local_absval
81
0 commit comments