Skip to content

Commit e8cda32

Browse files
committed
TL: minor debug
1 parent 83d5dbc commit e8cda32

File tree

1 file changed

+2
-2
lines changed
  • pySDC/playgrounds/dedalus

1 file changed

+2
-2
lines changed

pySDC/playgrounds/dedalus/sdc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,15 +968,15 @@ def _broadcastState(self):
968968
if rank == M-1: # copy last rank state into buffer
969969
pos = 0
970970
for f, size in zip(state, sizes):
971-
np.copyto(buffer[pos:size], f.data.flat)
971+
np.copyto(buffer[pos:pos+size], f.data.flat)
972972
pos += size
973973

974974
self.comm.Bcast(buffer, root=self.M-1)
975975

976976
if rank != M-1: # copy buffer data into state
977977
pos = 0
978978
for f, size in zip(state, sizes):
979-
np.copyto(f.data, buffer[pos:size].reshape(f.data.shape))
979+
np.copyto(f.data, buffer[pos:pos+size].reshape(f.data.shape))
980980
pos += size
981981

982982
def _computeMX0(self, MX0:CoeffSystem):

0 commit comments

Comments
 (0)