Skip to content

Commit e3f6a07

Browse files
committed
STY: fewer couts
1 parent 2371fb2 commit e3f6a07

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int main() {
111111
if (!didWork)
112112
throw std::string("init_dipole_grid failed!");
113113
} else {
114-
std::cout << "Making Spherical Magnetic Grid\n";
114+
report.print(0, "Making Spherical Magnetic Grid\n");
115115
mGrid.set_IsDipole(false);
116116
didWork = mGrid.init_geo_grid(quadtree, planet);
117117
mGrid.set_IsGeoGrid(false);

src/output_netcdf.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ bool OutputContainer::read_container_netcdf() {
7272
std::string UNITS = "units";
7373

7474
try {
75-
std::cout << "Reading NetCDF file into container : "
76-
<< whole_filename << "\n";
75+
if (report.test_verbose(0))
76+
std::cout << "Reading NetCDF file into container : "
77+
<< whole_filename << "\n";
78+
7779
NcFile ncdf_file_in(whole_filename, NcFile::read);
7880

7981
std::multimap<std::string, NcVar> variables_in_file;

0 commit comments

Comments
 (0)