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
fffb6965
Commit
fffb6965
authored
Dec 26, 2015
by
Cristian Lalescu
Browse files
fix generation of interpolator compute array
parent
e8a0dbac
Changes
2
Hide whitespace changes
Inline
Side-by-side
bfps/cpp/rFFTW_interpolator.cpp
View file @
fffb6965
...
...
@@ -51,7 +51,7 @@ rFFTW_interpolator<rnumber, interp_neighbours>::rFFTW_interpolator(
this
->
compute
=
new
bool
[
this
->
descriptor
->
sizes
[
0
]];
std
::
fill_n
(
this
->
compute
,
this
->
descriptor
->
sizes
[
0
],
false
);
for
(
int
iz
=
this
->
descriptor
->
starts
[
0
]
-
interp_neighbours
-
1
;
iz
<=
this
->
descriptor
->
starts
[
0
]
+
this
->
descriptor
->
subsizes
[
0
]
+
interp_neighbours
+
1
;
iz
<=
this
->
descriptor
->
starts
[
0
]
+
this
->
descriptor
->
subsizes
[
0
]
+
interp_neighbours
;
iz
++
)
this
->
compute
[((
iz
+
this
->
descriptor
->
sizes
[
0
])
%
this
->
descriptor
->
sizes
[
0
])]
=
true
;
}
...
...
tests/test_scaling.py
View file @
fffb6965
...
...
@@ -54,8 +54,8 @@ if __name__ == '__main__':
[
'-n'
,
'32'
,
'--run'
,
'--initialize'
,
'--ncpu'
,
'
2
'
,
'--nparticles'
,
'1000'
,
'--ncpu'
,
'
4
'
,
'--nparticles'
,
'1000
0
'
,
'--niter_todo'
,
'32'
,
'--precision'
,
'single'
,
'--wd'
,
'data/single'
]
+
...
...
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