Skip to content
Snippets Groups Projects
Commit 28bac71b authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

minor bugfix: stack variable wasn't initialized

[[Imported from SVN: r3317]]
parent 0b94cd4b
No related branches found
No related tags found
No related merge requests found
......@@ -308,18 +308,16 @@ public:
int block[max_size];
int block_counter = -1;
CoordinateType buffer_coordinate;
// Initialize to a coordinate that doesn't occur in the grid
CoordinateType buffer_coordinate(std::numeric_limits<double>::infinity());
for( int i = 0; i < max_size ; ++i )
{
bool coordinates_partially_equal = true;
for ( int d = 0; d < dim ; ++d )
{
if (!(d==axis_of_anisotropy_))
{
if ( !(buffer_coordinate[d] == node_list_[i].get_global_coordinate()[d]) )
{ coordinates_partially_equal = false; }
}
if (d!=axis_of_anisotropy_ and buffer_coordinate[d] != node_list_[i].get_global_coordinate()[d] )
coordinates_partially_equal = false;
}
if ( coordinates_partially_equal == true )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment