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

Using logog logging within class template Grid.

parent 63ef51b4
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
#include <vector> #include <vector>
// ThirdParty/logog
#include "logog/include/logog.hpp"
// GeoLib // GeoLib
#include "AABB.h" #include "AABB.h"
#include "GEOObjects.h" #include "GEOObjects.h"
...@@ -137,11 +140,11 @@ public: ...@@ -137,11 +140,11 @@ public:
const std::size_t j(static_cast<std::size_t> ((pnt[1] - this->_min_pnt[1]) * _inverse_step_sizes[1])); const std::size_t j(static_cast<std::size_t> ((pnt[1] - this->_min_pnt[1]) * _inverse_step_sizes[1]));
const std::size_t k(static_cast<std::size_t> ((pnt[2] - this->_min_pnt[2]) * _inverse_step_sizes[2])); const std::size_t k(static_cast<std::size_t> ((pnt[2] - this->_min_pnt[2]) * _inverse_step_sizes[2]));
if (i >= _n_steps[0] || j >= _n_steps[1] || k >= _n_steps[2]) { if (i < _n_steps[0] && j < _n_steps[1] && k < _n_steps[2]) {
std::cout << "error computing indices " << std::endl; _grid_cell_nodes_map[i + j * _n_steps[0] + k * n_plane].push_back(const_cast<POINT*>(copyOrAddress(*it)));
} else {
ERR("Grid constructor: error computing indices [%d, %d, %d], max indices [%d, %d, %d].", i, j, k, _n_steps[0], _n_steps[1], _n_steps[2]);
} }
_grid_cell_nodes_map[i + j * _n_steps[0] + k * n_plane].push_back(const_cast<POINT*>(copyOrAddress(*it)));
it++; it++;
} }
......
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