Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
f8d465ba
Commit
f8d465ba
authored
Dec 26, 2015
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
update test_time_step
parent
3ce307aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_time_step.py
+12
-4
12 additions, 4 deletions
tests/test_time_step.py
tox_time_step.ini
+0
-30
0 additions, 30 deletions
tox_time_step.ini
with
12 additions
and
34 deletions
tests/test_time_step.py
+
12
−
4
View file @
f8d465ba
#! /usr/bin/env python2
#######################################################################
# #
# Copyright 2015 Max Planck Institute #
...
...
@@ -30,7 +29,7 @@ import h5py
from
mpl_toolkits.mplot3d
import
axes3d
import
matplotlib.pyplot
as
plt
from
test_
base
import
*
from
base
import
*
def
convergence_test
(
opt
,
...
...
@@ -93,10 +92,19 @@ def convergence_test(
a
.
set_xscale
(
'
log
'
)
a
.
set_yscale
(
'
log
'
)
a
.
set_xlabel
(
'
$
\\
|u
\\
|_
\\
infty
\\
frac{
\\
Delta t}{
\\
Delta x}$
'
)
fig
.
savefig
(
'
spec
_err_vs_dt_{0}.pdf
'
.
format
(
opt
.
precision
))
fig
.
savefig
(
'
vel
_err_vs_dt_{0}.pdf
'
.
format
(
opt
.
precision
))
return
None
if
__name__
==
'
__main__
'
:
opt
=
parser
.
parse_args
()
opt
=
parser
.
parse_args
(
[
'
-n
'
,
'
32
'
,
'
--run
'
,
'
--initialize
'
,
'
--ncpu
'
,
'
2
'
,
'
--nparticles
'
,
'
1000
'
,
'
--niter_todo
'
,
'
16
'
,
'
--precision
'
,
'
single
'
,
'
--wd
'
,
'
data/single
'
]
+
sys
.
argv
[
1
:])
convergence_test
(
opt
,
launch
)
This diff is collapsed.
Click to expand it.
tox_time_step.ini
deleted
100644 → 0
+
0
−
30
View file @
3ce307aa
[tox]
envlist
=
py27
[testenv]
whitelist_externals
=
echo
cp
passenv
=
LD_LIBRARY_PATH
changedir
=
{envtmpdir}
commands
=
cp
-r
{toxinidir}/tests
{envtmpdir}
python
tests/test_time_step.py
\
-n
32
\
--run
\
--initialize
\
--ncpu
2
\
--nparticles
32
\
--niter_todo
16
\
--precision
single
\
--wd
"data/single"
python
tests/test_time_step.py
\
-n
32
\
--run
\
--initialize
\
--ncpu
2
\
--nparticles
32
\
--niter_todo
16
\
--precision
double
\
--wd
"data/double"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment