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

update convergence test

also, put in a more reasonable default value... although it doesn't seem
to be that reasonable in terms of actual results.
parent a88bb74c
#! /usr/bin/env python2
####################################################################### #######################################################################
# # # #
# Copyright 2015 Max Planck Institute # # Copyright 2015 Max Planck Institute #
...@@ -30,7 +29,7 @@ import h5py ...@@ -30,7 +29,7 @@ import h5py
from mpl_toolkits.mplot3d import axes3d from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from test_base import * from base import *
def convergence_test( def convergence_test(
opt, opt,
...@@ -224,6 +223,15 @@ def convergence_test( ...@@ -224,6 +223,15 @@ def convergence_test(
return c0, c1, c2 return c0, c1, c2
if __name__ == '__main__': if __name__ == '__main__':
opt = parser.parse_args() opt = parser.parse_args(
['-n', '16',
'--run',
'--initialize',
'--ncpu', '2',
'--nparticles', '1000',
'--niter_todo', '32',
'--precision', 'single',
'--wd', 'data/single'] +
sys.argv[1:])
convergence_test(opt, launch) convergence_test(opt, launch)
[tox]
envlist = py34
[testenv]
deps = matplotlib
whitelist_externals =
echo
cp
passenv = LD_LIBRARY_PATH
changedir =
{envtmpdir}
commands =
cp -r {toxinidir}/tests {envtmpdir}
python tests/test_convergence.py \
-n 32 \
--run \
--initialize \
--ncpu 2 \
--nparticles 1 \
--niter_todo 16 \
--precision single \
--wd "data/single"
python tests/test_convergence.py \
-n 32 \
--run \
--initialize \
--ncpu 2 \
--nparticles 1 \
--niter_todo 16 \
--precision double \
--wd "data/double"
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