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
7fdb0414
Commit
7fdb0414
authored
Oct 31, 2012
by
Sebastian Rettenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Non opengl implementations should work again
parent
f24208e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
SWE_WavePropagationBlock.cpp
src/SWE_WavePropagationBlock.cpp
+2
-3
SWE_WavePropagationBlock.hh
src/SWE_WavePropagationBlock.hh
+1
-1
swe_mpi.cpp
src/examples/swe_mpi.cpp
+3
-3
swe_wavepropagation.cpp
src/examples/swe_wavepropagation.cpp
+3
-3
No files found.
src/SWE_WavePropagationBlock.cpp
View file @
7fdb0414
...
@@ -78,9 +78,8 @@
...
@@ -78,9 +78,8 @@
* ***********
* ***********
* </pre>
* </pre>
*/
*/
SWE_WavePropagationBlock
::
SWE_WavePropagationBlock
(
float
_offsetX
,
SWE_WavePropagationBlock
::
SWE_WavePropagationBlock
()
:
float
_offsetY
)
:
SWE_Block
(),
SWE_Block
(
_offsetX
,
_offsetY
),
hNetUpdatesLeft
(
nx
+
1
,
ny
),
hNetUpdatesLeft
(
nx
+
1
,
ny
),
hNetUpdatesRight
(
nx
+
1
,
ny
),
hNetUpdatesRight
(
nx
+
1
,
ny
),
huNetUpdatesLeft
(
nx
+
1
,
ny
),
huNetUpdatesLeft
(
nx
+
1
,
ny
),
...
...
src/SWE_WavePropagationBlock.hh
View file @
7fdb0414
...
@@ -114,7 +114,7 @@ class SWE_WavePropagationBlock: public SWE_Block {
...
@@ -114,7 +114,7 @@ class SWE_WavePropagationBlock: public SWE_Block {
public
:
public
:
//constructor of a SWE_WavePropagationBlock.
//constructor of a SWE_WavePropagationBlock.
SWE_WavePropagationBlock
(
float
_offsetX
=
(
float
)
0.
,
float
_offsetY
=
(
float
)
0.
);
SWE_WavePropagationBlock
();
//executes a single timestep.
//executes a single timestep.
virtual
void
simulateTimestep
(
float
dt
);
virtual
void
simulateTimestep
(
float
dt
);
...
...
src/examples/swe_mpi.cpp
View file @
7fdb0414
...
@@ -243,7 +243,7 @@ int main( int argc, char** argv ) {
...
@@ -243,7 +243,7 @@ int main( int argc, char** argv ) {
// create a single wave propagation block
// create a single wave propagation block
#ifndef CUDA
#ifndef CUDA
SWE_WavePropagationBlock
l_wavePropgationBlock
(
l_originX
,
l_originY
)
;
SWE_WavePropagationBlock
l_wavePropgationBlock
;
#else
#else
//! number of CUDA devices per node TODO: hardcoded
//! number of CUDA devices per node TODO: hardcoded
int
l_cudaDevicesPerNode
=
7
;
int
l_cudaDevicesPerNode
=
7
;
...
@@ -251,11 +251,11 @@ int main( int argc, char** argv ) {
...
@@ -251,11 +251,11 @@ int main( int argc, char** argv ) {
//! the id of the node local GPU
//! the id of the node local GPU
int
l_cudaDeviceId
=
l_mpiRank
%
l_cudaDevicesPerNode
;
int
l_cudaDeviceId
=
l_mpiRank
%
l_cudaDevicesPerNode
;
SWE_WavePropagationBlockCuda
l_wavePropgationBlock
(
l_
originX
,
l_originY
,
l_
cudaDeviceId
);
SWE_WavePropagationBlockCuda
l_wavePropgationBlock
(
l_cudaDeviceId
);
#endif
#endif
// initialize the wave propgation block
// initialize the wave propgation block
l_wavePropgationBlock
.
initScenario
(
l_scenario
,
true
);
l_wavePropgationBlock
.
initScenario
(
l_originX
,
l_originY
,
l_scenario
,
true
);
//! time when the simulation ends.
//! time when the simulation ends.
float
l_endSimulation
=
l_scenario
.
endSimulation
();
float
l_endSimulation
=
l_scenario
.
endSimulation
();
...
...
src/examples/swe_wavepropagation.cpp
View file @
7fdb0414
...
@@ -156,13 +156,13 @@ int main( int argc, char** argv ) {
...
@@ -156,13 +156,13 @@ int main( int argc, char** argv ) {
// create a single wave propagation block
// create a single wave propagation block
#ifndef CUDA
#ifndef CUDA
SWE_WavePropagationBlock
l_wavePropgationBlock
(
l_originX
,
l_originY
)
;
SWE_WavePropagationBlock
l_wavePropgationBlock
;
#else
#else
SWE_WavePropagationBlockCuda
l_wavePropgationBlock
(
l_originX
,
l_originY
)
;
SWE_WavePropagationBlockCuda
l_wavePropgationBlock
;
#endif
#endif
// initialize the wave propgation block
// initialize the wave propgation block
l_wavePropgationBlock
.
initScenario
(
l_scenario
);
l_wavePropgationBlock
.
initScenario
(
l_
originX
,
l_originY
,
l_
scenario
);
//! time when the simulation ends.
//! time when the simulation ends.
...
...
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