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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
82bf20cb
Commit
82bf20cb
authored
9 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
add back some stats to plain test
parent
b58c8898
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_plain.py
+11
-2
11 additions, 2 deletions
tests/test_plain.py
with
11 additions
and
2 deletions
tests/test_plain.py
+
11
−
2
View file @
82bf20cb
...
...
@@ -27,6 +27,7 @@
#from base import *
import
bfps
from
bfps.tools
import
particle_finite_diff_test
as
acceleration_test
import
sys
import
numpy
as
np
...
...
@@ -136,12 +137,20 @@ def plain(args):
return
None
if
__name__
==
'
__main__
'
:
c
=
NSPlain
()
c
.
launch
(
c
0
=
NSPlain
()
c
0
.
launch
(
[
'
-n
'
,
'
32
'
,
'
--ncpu
'
,
'
4
'
,
'
--nparticles
'
,
'
1000
'
,
'
--niter_todo
'
,
'
48
'
,
'
--wd
'
,
'
data/single
'
]
+
sys
.
argv
[
1
:])
c0
.
compute_statistics
()
print
(
'
Re = {0:.0f}
'
.
format
(
c0
.
statistics
[
'
Re
'
]))
print
(
'
Rlambda = {0:.0f}
'
.
format
(
c0
.
statistics
[
'
Rlambda
'
]))
print
(
'
Lint = {0:.4e}, etaK = {1:.4e}
'
.
format
(
c0
.
statistics
[
'
Lint
'
],
c0
.
statistics
[
'
etaK
'
]))
print
(
'
Tint = {0:.4e}, tauK = {1:.4e}
'
.
format
(
c0
.
statistics
[
'
Tint
'
],
c0
.
statistics
[
'
tauK
'
]))
print
(
'
kMetaK = {0:.4e}
'
.
format
(
c0
.
statistics
[
'
kMeta
'
]))
for
s
in
range
(
c0
.
particle_species
):
acceleration_test
(
c0
,
species
=
s
,
m
=
1
)
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
register
or
sign in
to comment