Skip to content
Snippets Groups Projects
Commit fa3fc495 authored by Tom Fischer's avatar Tom Fischer
Browse files

Using logog logging within class Raster.

parent a1ee951f
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ Raster* Raster::getRasterFromSurface(Surface const& sfc, double cell_size, doubl ...@@ -77,7 +77,7 @@ Raster* Raster::getRasterFromSurface(Surface const& sfc, double cell_size, doubl
const size_t n_triangles (sfc.getNTriangles()); const size_t n_triangles (sfc.getNTriangles());
double *z_vals (new double[n_cols*n_rows]); double *z_vals (new double[n_cols*n_rows]);
if (!z_vals) { if (!z_vals) {
std::cout << "DEBUG: CreateRaster::getRaster " << n_cols << " x " << n_rows << " to big" << std::endl; WARN("CreateRaster::getRaster not enough memory for %d x %d raster", n_cols, n_rows);
return NULL; return NULL;
} }
size_t k(0); size_t k(0);
...@@ -128,7 +128,7 @@ Raster* Raster::getRasterFromASCFile(std::string const& fname) ...@@ -128,7 +128,7 @@ Raster* Raster::getRasterFromASCFile(std::string const& fname)
std::ifstream in(fname.c_str()); std::ifstream in(fname.c_str());
if (!in.is_open()) { if (!in.is_open()) {
std::cout << "Raster::getRasterFromASCFile() - Could not open file..." << fname << std::endl; WARN("Raster::getRasterFromASCFile(): Could not open file %s.", fname.c_str());
return NULL; return NULL;
} }
...@@ -154,7 +154,7 @@ Raster* Raster::getRasterFromASCFile(std::string const& fname) ...@@ -154,7 +154,7 @@ Raster* Raster::getRasterFromASCFile(std::string const& fname)
delete [] values; delete [] values;
return raster; return raster;
} else { } else {
std::cout << "Raster::getRasterFromASCFile() - could not read header of file " << fname << std::endl; WARN("Raster::getRasterFromASCFile(): Could not read header of file %s", fname.c_str());
return NULL; return NULL;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment