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
45b32758
Commit
45b32758
authored
Mar 27, 2013
by
Sebastian Rettenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change input for tpv10
parent
14a1ac51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
swe_mpi.cpp
src/examples/swe_mpi.cpp
+12
-12
No files found.
src/examples/swe_mpi.cpp
View file @
45b32758
...
...
@@ -197,14 +197,14 @@ int main( int argc, char** argv ) {
//simulation area
float
simulationArea
[
4
];
simulationArea
[
0
]
=
-
45
0000
;
simulationArea
[
1
]
=
1
1
00000
;
simulationArea
[
2
]
=
-
245
0000
;
simulationArea
[
3
]
=
475
000
;
SWE_AsagiScenario
l_scenario
(
ASAGI_INPUT_DIR
"
tohoku_gebco_ucsb3_500m_hawaii_bath
.nc"
,
ASAGI_INPUT_DIR
"t
ohoku_percy_500m
_displ.nc"
,
(
float
)
40
00.
,
simulationArea
,
true
);
simulationArea
[
0
]
=
-
10
0000
;
simulationArea
[
1
]
=
100000
;
simulationArea
[
2
]
=
-
10
0000
;
simulationArea
[
3
]
=
100
000
;
SWE_AsagiScenario
l_scenario
(
ASAGI_INPUT_DIR
"
const_bathymetry
.nc"
,
ASAGI_INPUT_DIR
"t
pv10
_displ.nc"
,
(
float
)
35
00.
,
simulationArea
,
true
);
#else
// create a simple artificial scenario
SWE_BathymetryDamBreakScenario
l_scenario
;
...
...
@@ -264,11 +264,11 @@ int main( int argc, char** argv ) {
std
::
vector
<
float
>
l_checkPoints
;
// compute the checkpoints in time
for
(
float
cp
=
0
;
cp
<
267
;
cp
+=
1.65
)
for
(
float
cp
=
0
;
cp
<
15
;
cp
+=
1.65
)
l_checkPoints
.
push_back
(
cp
);
for
(
float
cp
=
267
;
cp
<
60
0
;
cp
+=
15
)
for
(
float
cp
=
15
;
cp
<
15
0
;
cp
+=
15
)
l_checkPoints
.
push_back
(
cp
);
for
(
float
cp
=
600
;
cp
<
6000
;
cp
+=
60
)
for
(
float
cp
=
150
;
cp
<
l_scenario
.
endSimulation
()
;
cp
+=
60
)
l_checkPoints
.
push_back
(
cp
);
int
l_numberOfCheckPoints
=
l_checkPoints
.
size
();
...
...
@@ -475,7 +475,7 @@ int main( int argc, char** argv ) {
l_iterations
++
;
// Update displacement
displAvail
=
l_wavePropgationBlock
.
updateBathymetryWithDynamicDisplacement
(
l_scenario
,
l_t
);
displAvail
=
l_wavePropgationBlock
.
updateBathymetryWithDynamicDisplacement
(
l_scenario
,
l_t
);
// print the current simulation time
progressBar
.
clear
();
...
...
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