Commit bbab5baf authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

tweaks Heun test

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