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 83d5dbc commit e8cda32Copy full SHA for e8cda32
pySDC/playgrounds/dedalus/sdc.py
@@ -968,15 +968,15 @@ def _broadcastState(self):
968
if rank == M-1: # copy last rank state into buffer
969
pos = 0
970
for f, size in zip(state, sizes):
971
- np.copyto(buffer[pos:size], f.data.flat)
+ np.copyto(buffer[pos:pos+size], f.data.flat)
972
pos += size
973
974
self.comm.Bcast(buffer, root=self.M-1)
975
976
if rank != M-1: # copy buffer data into state
977
978
979
- np.copyto(f.data, buffer[pos:size].reshape(f.data.shape))
+ np.copyto(f.data, buffer[pos:pos+size].reshape(f.data.shape))
980
981
982
def _computeMX0(self, MX0:CoeffSystem):
0 commit comments