Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
swe_solvers
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_solvers
Commits
89e95490
Commit
89e95490
authored
Jul 20, 2012
by
breuera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added optional pre-compiler statement for the constants (Visual C++ Compiler).
parent
77b860c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
FWaveCuda.h
src/solver/FWaveCuda.h
+11
-0
No files found.
src/solver/FWaveCuda.h
View file @
89e95490
...
...
@@ -61,6 +61,13 @@ const T zeroTol = (T) 0.0000001;
//! numerical definition of a dry cell
const
T
dryTol
=
(
T
)
100
.;
/*
* Visual C++ compiler doesn't allow the definitions above.
* Therefore the pre-compiler should be used.
*/
//#define zeroTol (T)0.0000001
//#define dryTol (T)100.
__device__
void
fWaveComputeNetUpdates
(
const
T
i_gravity
,
T
i_hLeft
,
T
i_hRight
,
...
...
@@ -328,3 +335,7 @@ inline void fWaveComputeWaveDecomposition( const T i_gravity,
// io_waveSpeeds[1] = (T) 0.;
// }
}
// undefine the constants (see above)
#undef zeroTol
#undef dryTol
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