Skip to content
Snippets Groups Projects
Commit bbab5baf authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

tweaks Heun test

parent 58f9bd09
Branches
Tags
No related merge requests found
...@@ -328,7 +328,7 @@ def main(): ...@@ -328,7 +328,7 @@ def main():
df = bla.get_particle_file() df = bla.get_particle_file()
x = [] x = []
v = [] v = []
for ii in range(200): for ii in range(bla.parameters['niter_out']):
x.append(df['tracers0/position/{0}'.format(ii)][()]) x.append(df['tracers0/position/{0}'.format(ii)][()])
v.append(df['tracers0/velocity/{0}'.format(ii)][()]) v.append(df['tracers0/velocity/{0}'.format(ii)][()])
df.close() df.close()
...@@ -354,6 +354,7 @@ def main(): ...@@ -354,6 +354,7 @@ def main():
f.savefig('traj.pdf') f.savefig('traj.pdf')
except ImportError: except ImportError:
print('couldn\'t import matplotlib, no figure') print('couldn\'t import matplotlib, no figure')
print(np.max(relative_error))
assert(np.max(relative_error) < 1e-4) assert(np.max(relative_error) < 1e-4)
return None return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment