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
dfbe3c4e
Commit
dfbe3c4e
authored
Jan 18, 2014
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added compile option to avoid writing output at checkpoints
Signed-off-by:
Gaurav Kukreja
<
gaurav.kukreja@tum.de
>
parent
cb8cace4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
SConstruct
SConstruct
+6
-1
SWE_intel_fwavevec_omp_vec.py
build/options/SWE_intel_fwavevec_omp_vec.py
+2
-1
swe_mpi.cpp
src/examples/swe_mpi.cpp
+6
-0
No files found.
SConstruct
View file @
dfbe3c4e
...
...
@@ -114,7 +114,9 @@ vars.AddVariables(
BoolVariable
(
'countflops'
,
'enable flop counting; defines the macro COUNTFLOPS'
,
False
),
BoolVariable
(
'loop_openmp'
,
'enable loop parallelization using OpenMP'
,
False
)
BoolVariable
(
'loop_openmp'
,
'enable loop parallelization using OpenMP'
,
False
),
BoolVariable
(
'write_output'
,
'write output files at each checkpoint'
,
True
)
)
# external variables
...
...
@@ -234,6 +236,9 @@ if env['loop_openmp']:
env
.
Append
(
CCFLAGS
=
[
'-DLOOP_OPENMP'
,
'-openmp'
])
env
.
Append
(
LINKFLAGS
=
[
'-openmp'
])
if
env
[
'write_output'
]:
env
.
Append
(
CCFLAGS
=
[
'-DWRITE_OUTPUT'
])
# Vectorization?
if
env
[
'compileMode'
]
==
'release'
and
env
[
'vectorize'
]:
env
.
Append
(
CPPDEFINES
=
[
'VECTORIZE'
])
...
...
build/options/SWE_intel_fwavevec_omp_vec.py
View file @
dfbe3c4e
...
...
@@ -30,10 +30,11 @@
loop_openmp
=
'yes'
#countflops='yes'
compiler
=
'intel'
#
parallelization='mpi'
parallelization
=
'mpi'
solver
=
'fwavevec'
#solver='augrie'
#writeNetCDF='yes'
write_output
=
'no'
# Library paths (only required of not installed in default path)
#netCDFDir=''
src/examples/swe_mpi.cpp
View file @
dfbe3c4e
...
...
@@ -127,7 +127,9 @@ int main( int argc, char** argv ) {
#ifndef READXML
args
.
addOption
(
"grid-size-x"
,
'x'
,
"Number of cell in x direction"
);
args
.
addOption
(
"grid-size-y"
,
'y'
,
"Number of cell in y direction"
);
//#ifdef WRITE_OUTPUT
args
.
addOption
(
"output-basepath"
,
'o'
,
"Output base file name"
);
//#endif // WRITE_OUTPUT
args
.
addOption
(
"output-steps-count"
,
'c'
,
"Number of output time steps"
);
#ifdef ASAGI
args
.
addOption
(
"bathymetry-file"
,
'b'
,
"File containing the bathymetry"
);
...
...
@@ -408,11 +410,13 @@ int main( int argc, char** argv ) {
l_dX
,
l_dY
,
l_blockPositionX
*
l_nXLocal
,
l_blockPositionY
*
l_nYLocal
);
#endif
#ifdef WRITE_OUTPUT
// Write zero time step
l_writer
.
writeTimeStep
(
l_wavePropgationBlock
.
getWaterHeight
(),
l_wavePropgationBlock
.
getDischarge_hu
(),
l_wavePropgationBlock
.
getDischarge_hv
(),
(
float
)
0.
);
#endif // WRITE_OUTPUT
/**
* Simulation.
*/
...
...
@@ -485,6 +489,7 @@ int main( int argc, char** argv ) {
progressBar
.
update
(
l_t
);
}
#ifdef WRITE_OUPUT
// print current simulation time
progressBar
.
clear
();
tools
::
Logger
::
logger
.
printOutputTime
(
l_t
);
...
...
@@ -495,6 +500,7 @@ int main( int argc, char** argv ) {
l_wavePropgationBlock
.
getDischarge_hu
(),
l_wavePropgationBlock
.
getDischarge_hv
(),
l_t
);
#endif // WRITE_OUTPUT
}
/**
...
...
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