Skip to content

Commit 57414e4

Browse files
committed
Print history in MPI
1 parent 3fc5d46 commit 57414e4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/tutorials/local_sine_tutorial.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ need to write a new allocation function.
413413
414414
if ensemble.is_manager: # only True on rank 0
415415
history = ensemble.H # start visualizing our results
416+
print([i for i in history.dtype.fields])
417+
print(history)
416418
417419
colors = ["b", "g", "r", "y", "m", "c", "k", "w"]
418420

examples/tutorials/simple_sine/calling_mpi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@
3131
ensemble.add_random_streams() # setup the random streams unique to each worker
3232

3333
if __name__ == "__main__":
34-
3534
ensemble.run() # start the ensemble. Blocks until completion.
3635

3736
if ensemble.is_manager: # only True on rank 0
3837
history = ensemble.H # start visualizing our results
38+
print([i for i in history.dtype.fields])
39+
print(history)
3940

4041
colors = ["b", "g", "r", "y", "m", "c", "k", "w"]
4142

0 commit comments

Comments
 (0)