Commit 89e95490 authored by breuera's avatar breuera

Added optional pre-compiler statement for the constants (Visual C++ Compiler).

parent 77b860c2
...@@ -61,6 +61,13 @@ const T zeroTol = (T) 0.0000001; ...@@ -61,6 +61,13 @@ const T zeroTol = (T) 0.0000001;
//! numerical definition of a dry cell //! numerical definition of a dry cell
const T dryTol = (T) 100.; 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__ __device__
void fWaveComputeNetUpdates( const T i_gravity, void fWaveComputeNetUpdates( const T i_gravity,
T i_hLeft, T i_hRight, T i_hLeft, T i_hRight,
...@@ -328,3 +335,7 @@ inline void fWaveComputeWaveDecomposition( const T i_gravity, ...@@ -328,3 +335,7 @@ inline void fWaveComputeWaveDecomposition( const T i_gravity,
// io_waveSpeeds[1] = (T) 0.; // io_waveSpeeds[1] = (T) 0.;
// } // }
} }
// undefine the constants (see above)
#undef zeroTol
#undef dryTol
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment