Skip to content
Snippets Groups Projects
Commit f6a9b859 authored by Antonio Ragagnin's avatar Antonio Ragagnin :speech_balloon:
Browse files

Update run_pm_dmo_NFW_fixed_timestep.md

parent d194efa1
No related branches found
No related tags found
No related merge requests found
...@@ -86,10 +86,7 @@ with ( ...@@ -86,10 +86,7 @@ with (
fig, ax = plt.subplots(1) fig, ax = plt.subplots(1)
ax.hist2d(p['pos'][:, 0], p['pos'][:, 1], bins=128) ax.hist2d(p['pos'][:, 0], p['pos'][:, 1], bins=128)
ax.set_aspect('equal') ax.set_aspect('equal')
path = os.path.join( fig.savefig(f'snap{ts.steps}_rank{mpi.rank}.png', bbox_inches='tight', dpi=200)
os.getenv('HW_BUILD', '.'), f'snap{ts.steps}_rank{mpi.rank}.png'
)
fig.savefig(path, bbox_inches='tight', dpi=200)
plt.close(fig) plt.close(fig)
print('Simulation finished') print('Simulation finished')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment