Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
575007b4
Commit
575007b4
authored
May 17, 2017
by
Berenger Bramas
Browse files
bugfix for kshell nshell threaded computation
parent
712af84b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bfps/cpp/kspace.cpp
View file @
575007b4
...
...
@@ -40,7 +40,7 @@ kspace<be, dt>::kspace(
const
double
DKY
,
const
double
DKZ
)
{
TIMEZONE
(
"
field
::kspace"
);
TIMEZONE
(
"
kspace
::kspace"
);
/* get layout */
this
->
layout
=
new
field_layout
<
ONE
>
(
source_layout
->
sizes
,
...
...
@@ -128,8 +128,8 @@ kspace<be, dt>::kspace(
if
(
k2
<
this
->
kM2
)
{
double
knorm
=
sqrt
(
k2
);
kshell_local_thread
.
getMine
()[
int
(
knorm
/
this
->
dk
)]
+=
nxmodes
;
nshell_local_thread
.
getMine
()[
int
(
knorm
/
this
->
dk
)]
+=
nxmodes
*
knorm
;
kshell_local_thread
.
getMine
()[
int
(
knorm
/
this
->
dk
)]
+=
nxmodes
*
knorm
;
nshell_local_thread
.
getMine
()[
int
(
knorm
/
this
->
dk
)]
+=
nxmodes
;
}
if
(
dt
==
SMOOTH
){
dealias_filter_threaded
[
omp_get_thread_num
()][
int
(
round
(
k2
/
this
->
dk2
))]
=
exp
(
-
36.0
*
pow
(
k2
/
this
->
kM2
,
18.
));
...
...
Write
Preview
Markdown
is supported
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