Commit 1d8d43cb by incardon

Fixed cartesian decomposition

parent 2f7b6f8f
 ... ... @@ -47,10 +47,7 @@ BOOST_AUTO_TEST_CASE( CartesianGraphFactory_use) CartesianGraphFactory<3,Graph_CSR,Point_test>> g_factory; // Cartesian grid std::vector sz; sz.push_back(GS_SIZE); sz.push_back(GS_SIZE); sz.push_back(GS_SIZE); size_t sz[3] = {GS_SIZE,GS_SIZE,GS_SIZE}; // Box Box<3,float> box({0.0,0.0,0.0},{1.0,1.0,1.0}); ... ...
 ... ... @@ -84,16 +84,8 @@ class Graph_constructor_impl { public: //! Construct cartesian graph static Graph construct(std::vector sz, Box dom) static Graph construct(size_t (& sz)[dim], Box dom) { #ifdef DEBUG //! The size is wrong signal it if (sz.size() != dim) {std::cerr << "Error this factory has been specialized for catesian grid of dimension " << dim << "\n";} #endif // Calculate the size of the hyper-cubes on each dimension T szd[dim]; ... ... @@ -202,16 +194,8 @@ class Graph_constructor_impl { public: //! Construct cartesian graph static Graph construct(std::vector sz, Box dom) static Graph construct(size_t ( & sz)[dim], Box dom) { #ifdef DEBUG //! The size is wrong signal it if (sz.size() != dim) {std::cerr << "Error this factory has been specialized for catesian grid of dimension " << dim << "\n";} #endif // Calculate the size of the hyper-cubes on each dimension T szd[dim]; ... ... @@ -385,7 +369,7 @@ public: * */ template static Graph construct(std::vector sz, Box dom) static Graph construct(size_t (& sz)[dim], Box dom) { return Graph_constructor_impl::construct(sz,dom); } ... ...