Commit 23069be1 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] fixed warning-> using std::abs now

parent 247c71ce
...@@ -138,7 +138,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned ...@@ -138,7 +138,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
{ {
for( coord_t k = -range; k <= range ; ++k ) for( coord_t k = -range; k <= range ; ++k )
{ {
const int test( abs( i )+abs( j )+abs( k ) ); const int test( std::abs( i ) + std::abs( j ) + std::abs( k ) );
if( test == 0 ) if( test == 0 )
{ {
continue; // dont use the voxel itself as neighbour continue; // dont use the voxel itself as neighbour
...@@ -173,7 +173,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned ...@@ -173,7 +173,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
{ {
for( coord_t k =- 2; k <= 2; k += 2 ) for( coord_t k =- 2; k <= 2; k += 2 )
{ {
const int test( abs( i )+abs( j )+abs( k ) ); const int test( std::abs( i ) + std::abs( j ) + std::abs( k ) );
if( test != 2 ) if( test != 2 )
{ {
continue; continue;
......
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