Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
SWE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
SWE
Commits
42e37c66
Commit
42e37c66
authored
Jan 19, 2014
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the final bug to make everything work
Signed-off-by:
Gaurav Kukreja
<
gaurav.kukreja@tum.de
>
parent
c0b88cc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
SWE_WavePropagationBlock.cpp
src/blocks/SWE_WavePropagationBlock.cpp
+8
-4
No files found.
src/blocks/SWE_WavePropagationBlock.cpp
View file @
42e37c66
...
...
@@ -40,7 +40,8 @@
#include <omp.h>
#endif
#define VEC_LENGTH 4
#define VEC_LENGTH 8
/**
* Constructor of a SWE_WavePropagationBlock.
...
...
@@ -124,8 +125,11 @@ SWE_WavePropagationBlock::computeNumericalFluxes ()
float
maxWaveSpeed
=
(
float
)
0.
;
// compute the loop limits
const
int
end_ny_1_1
=
ny
+
1
;
const
int
end_ny_1_2
=
ny
+
2
;
// const int end_ny_1_1 = ny + 1;
// const int end_ny_1_2 = ny + 2;
const
int
end_ny_1_1
=
ny
&
(
~
(
VEC_LENGTH
-
1
));
const
int
end_ny_1_2
=
(
ny
+
1
)
&
(
~
(
VEC_LENGTH
-
1
));
#if WAVE_PROPAGATION_SOLVER==5
// Note, that ny is used instead of (ny + 1). This is due to the fact, that in the loop below, j starts with 1!
...
...
@@ -321,7 +325,7 @@ SWE_WavePropagationBlock::computeNumericalFluxes ()
#ifdef LOOP_OPENMP
#pragma omp for schedule(static) nowait
#endif
for
(
j
=
1
;
j
<
end_ny_1_1
;
++
j
)
{
for
(
j
=
1
;
j
<
end_ny_1_1
;
j
+=
VEC_LENGTH
)
{
float
maxEdgeSpeed
;
wavePropagationSolver
.
computeNetUpdates_cilk
(
...
...
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