Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
nifty_gridder
Commits
b88f9d5c
Commit
b88f9d5c
authored
Sep 01, 2019
by
Martin Reinecke
Browse files
cosmetics
parent
8f4dbdea
Changes
1
Hide whitespace changes
Inline
Side-by-side
gridder_cxx.h
View file @
b88f9d5c
...
...
@@ -27,10 +27,17 @@
#include
<cstdlib>
#include
<cmath>
#include
<vector>
#include
<array>
#include
"pocketfft_hdronly.h"
#include
<array>
#if defined(__GNUC__)
#define NOINLINE __attribute__((noinline))
#define ALIGNED(align) __attribute__ ((aligned(align)))
#else
#define NOINLINE
#define ALIGNED(align)
#endif
namespace
gridder
{
...
...
@@ -636,7 +643,7 @@ template<typename T, typename T2=complex<T>> class Helper
public:
const
T2
*
p0r
;
T2
*
p0w
;
T
kernel
[
64
]
__attribute__
((
aligned
(
64
)
))
;
T
kernel
[
64
]
ALIGNED
(
64
);
Helper
(
const
GridderConfig
<
T
>
&
gconf_
,
const
T2
*
grid_r_
,
T2
*
grid_w_
,
T
w0_
=-
1
,
T
dw_
=-
1
)
:
gconf
(
gconf_
),
nu
(
gconf
.
Nu
()),
nv
(
gconf
.
Nv
()),
nsafe
(
gconf
.
Nsafe
()),
...
...
@@ -829,7 +836,7 @@ template<typename T, typename Serv> void grid2x_c
myassert
(
grid
.
contiguous
(),
"grid is not contiguous"
);
size_t
supp
=
gconf
.
Supp
();
size_t
nthreads
=
gconf
.
Nthreads
();
bool
do_w_gridding
=
dw
>
=
0
;
bool
do_w_gridding
=
dw
>
0
;
// Loop over sampling points
#pragma omp parallel num_threads(nthreads)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment