Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nifty_gridder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ift
nifty_gridder
Commits
f1540b9c
Commit
f1540b9c
authored
Jan 20, 2020
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tentative fix
parent
e5902284
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gridder_cxx.h
gridder_cxx.h
+3
-2
No files found.
gridder_cxx.h
View file @
f1540b9c
...
...
@@ -894,16 +894,17 @@ template<typename T, typename T2=complex<T>> class Helper
int
idxu
=
(
bu0
+
nu
)
%
nu
;
int
idxv0
=
(
bv0
+
nv
)
%
nv
;
#pragma omp critical(gridder_writing_to_grid)
for
(
int
iu
=
0
;
iu
<
su
;
++
iu
)
{
int
idxv
=
idxv0
;
locks
[
idxu
].
lock
();
//
locks[idxu].lock();
for
(
int
iv
=
0
;
iv
<
sv
;
++
iv
)
{
grid_w
[
idxu
*
nv
+
idxv
]
+=
wbuf
[
iu
*
sv
+
iv
];
if
(
++
idxv
>=
nv
)
idxv
=
0
;
}
locks
[
idxu
].
unlock
();
//
locks[idxu].unlock();
if
(
++
idxu
>=
nu
)
idxu
=
0
;
}
}
...
...
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