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
8d4ddc9f
Commit
8d4ddc9f
authored
Mar 08, 2013
by
Sebastian Rettenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some small fixes for vectorization
parent
325ff809
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
SConstruct
SConstruct
+2
-2
SWE_WavePropagationBlock.cpp
src/blocks/SWE_WavePropagationBlock.cpp
+3
-4
swe_solvers
submodules/swe_solvers
+1
-1
No files found.
SConstruct
View file @
8d4ddc9f
...
...
@@ -197,9 +197,9 @@ env.Append(CCFLAGS=['-fstrict-aliasing', '-fargument-noalias'])
if
env
[
'compileMode'
]
==
'release'
and
env
[
'vectorize'
]:
env
.
Append
(
CPPDEFINES
=
[
'VECTORIZE'
])
if
env
[
'compiler'
]
==
'intel'
:
env
.
Append
(
CCFLAGS
=
[
'-x
Host
'
])
env
.
Append
(
CCFLAGS
=
[
'-x
avx
'
])
if
env
[
'compiler'
]
==
'intel'
and
env
[
'showVectorization'
]:
env
.
Append
(
CCFLAGS
=
[
'-vec-report
2
'
])
env
.
Append
(
CCFLAGS
=
[
'-vec-report
3
'
])
# Platform
if
env
[
'compiler'
]
==
'intel'
and
env
[
'platform'
]
==
'mic'
:
...
...
src/blocks/SWE_WavePropagationBlock.cpp
View file @
8d4ddc9f
...
...
@@ -26,6 +26,8 @@
* SWE_Block, which uses solvers in the wave propagation formulation.
*/
#include "tools/Logger.hh"
#include "SWE_WavePropagationBlock.hh"
#include <cassert>
...
...
@@ -36,8 +38,6 @@
#include <omp.h>
#endif
#include "tools/Logger.hh"
/**
* Constructor of a SWE_WavePropagationBlock.
*
...
...
@@ -114,7 +114,7 @@ void SWE_WavePropagationBlock::computeNumericalFluxes() {
tools
::
Logger
::
logger
.
resetCpuClockToCurrentTime
();
//maximum (linearized) wave speed within one iteration
float
maxWaveSpeed
=
(
float
)
0.
;
float
maxWaveSpeed
=
(
float
)
.0
;
// compute the net-updates for the vertical edges
...
...
@@ -138,7 +138,6 @@ void SWE_WavePropagationBlock::computeNumericalFluxes() {
#endif // VECTORIZE
#endif // WAVE_PROPAGATION_SOLVER==4
for
(
int
j
=
1
;
j
<
ny
+
1
;
j
++
)
{
float
maxEdgeSpeed
;
#if WAVE_PROPAGATION_SOLVER!=3
...
...
swe_solvers
@
9f7fe2f2
Subproject commit
2569cc274f93ca7af014e972bc1fed7b0b1df7ef
Subproject commit
9f7fe2f2ebc31a9c9e68583232748fb5de7dba18
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