Show More
@@ -90,7 +90,7 b'' | |||
|
90 | 90 | "bcast = mpi.bcast\n", |
|
91 | 91 | "barrier = mpi.barrier\n", |
|
92 | 92 | "rank = mpi.rank\n", |
|
93 |
"print |
|
|
93 | "print(\"MPI rank: %i/%i\" % (mpi.rank,mpi.size))" | |
|
94 | 94 | ], |
|
95 | 95 | "language": "python", |
|
96 | 96 | "metadata": { |
@@ -270,7 +270,7 b'' | |||
|
270 | 270 | " try:\n", |
|
271 | 271 | " Z = np.concatenate(mpi_order(view['Z']))\n", |
|
272 | 272 | " except ValueError:\n", |
|
273 |
" print |
|
|
273 | " print(\"dimension mismatch in Z, not plotting\")\n", | |
|
274 | 274 | " ax = plt.gca()\n", |
|
275 | 275 | " return ax.figure\n", |
|
276 | 276 | " \n", |
@@ -361,7 +361,7 b'' | |||
|
361 | 361 | " if not simulation_alive():\n", |
|
362 | 362 | " plot_current_results(in_place=plots_in_place)\n", |
|
363 | 363 | " plt.close('all')\n", |
|
364 |
" print |
|
|
364 | " print('Simulation has already finished, no monitoring to do.')\n", | |
|
365 | 365 | " return\n", |
|
366 | 366 | " \n", |
|
367 | 367 | " t0 = dt.datetime.now()\n", |
@@ -380,8 +380,8 b'' | |||
|
380 | 380 | " clear_output(wait=True)\n", |
|
381 | 381 | " plt.close('all')\n", |
|
382 | 382 | " display(fig)\n", |
|
383 |
" print |
|
|
384 |
" print |
|
|
383 | " print(msg)\n", | |
|
384 | " print('Monitored for: %s.' % tmon)" | |
|
385 | 385 | ], |
|
386 | 386 | "language": "python", |
|
387 | 387 | "metadata": { |
@@ -100,7 +100,7 b'' | |||
|
100 | 100 | "bcast = mpi.bcast\n", |
|
101 | 101 | "barrier = mpi.barrier\n", |
|
102 | 102 | "rank = mpi.rank\n", |
|
103 |
"print |
|
|
103 | "print(\"MPI rank: %i/%i\" % (mpi.rank,mpi.size))" | |
|
104 | 104 | ], |
|
105 | 105 | "language": "python", |
|
106 | 106 | "metadata": {}, |
@@ -317,7 +317,7 b'' | |||
|
317 | 317 | " if ar.ready():\n", |
|
318 | 318 | " plot_current_results(ar, in_place=plots_in_place)\n", |
|
319 | 319 | " plt.close('all')\n", |
|
320 |
" print |
|
|
320 | " print('Simulation has already finished, no monitoring to do.')\n", | |
|
321 | 321 | " return\n", |
|
322 | 322 | " \n", |
|
323 | 323 | " t0 = dt.datetime.now()\n", |
@@ -336,8 +336,8 b'' | |||
|
336 | 336 | " clear_output(wait=True)\n", |
|
337 | 337 | " plt.close('all')\n", |
|
338 | 338 | " display(fig)\n", |
|
339 |
" print |
|
|
340 |
" print |
|
|
339 | " print(msg)\n", | |
|
340 | " print('Monitored for: %s.' % tmon)" | |
|
341 | 341 | ], |
|
342 | 342 | "language": "python", |
|
343 | 343 | "metadata": {}, |
General Comments 0
You need to be logged in to leave comments.
Login now