Skip to content

Commit 1f47579

Browse files
committed
STY: Limits outputs from grid_match to high verbosity
1 parent ed941f8 commit 1f47579

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/grid_match.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "aether.h"
55

6-
bool grid_match(Grid gGrid,
7-
Grid mGrid,
6+
bool grid_match(Grid gGrid,
7+
Grid mGrid,
88
Quadtree gQuadtree,
99
Quadtree mQuadtree) {
1010

@@ -33,14 +33,16 @@ bool grid_match(Grid gGrid,
3333
norms = sphere_to_cube(lon, lat);
3434
iNode = gQuadtree.find_point(norms);
3535
}
36-
std::cout << "lon, lat, node: " << lon*cRtoD << " "
37-
<< lat*cRtoD << " "
38-
<< norms(0) << " "
39-
<< norms(1) << " "
40-
<< norms(2) << " "
41-
<< iNode << "\n";
36+
if (report.test_verbose(6))
37+
std::cout << "lon, lat, node: " << lon*cRtoD << " "
38+
<< lat*cRtoD << " "
39+
<< norms(0) << " "
40+
<< norms(1) << " "
41+
<< norms(2) << " "
42+
<< iNode << "\n";
4243
}
4344
}
4445
}
46+
4547
return true;
4648
}

0 commit comments

Comments
 (0)