Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
181282d0
Commit
181282d0
authored
Nov 16, 2017
by
Cristian Lalescu
Browse files
fix parameter issue
parent
699e60d3
Pipeline
#21710
passed with stage
in 6 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bfps/DNS.py
View file @
181282d0
...
...
@@ -683,13 +683,13 @@ class DNS(_code):
if
type
(
opt
.
nz
)
==
type
(
None
):
opt
.
nz
=
opt
.
n
self
.
parameters
[
'nu'
]
=
(
opt
.
kMeta
*
2
/
opt
.
n
)
**
(
4.
/
3
)
if
self
.
parameters
[
'
forcing_type
'
]
==
'linear'
:
if
opt
.
forcing_type
==
'linear'
:
# custom famplitude for 288 and 576
if
opt
.
n
==
288
:
self
.
parameters
[
'famplitude'
]
=
0.45
elif
opt
.
n
==
576
:
self
.
parameters
[
'famplitude'
]
=
0.47
if
self
.
parameters
[
'
forcing_type
'
]
==
'fixed_energy_injection_rate'
:
el
if
opt
.
forcing_type
==
'fixed_energy_injection_rate'
:
kM
=
opt
.
n
*
0.5
if
self
.
parameters
[
'dealias_type'
]
==
1
:
kM
*=
0.8
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment