Преглед на файлове

pdevs/multithreading/lifegame: add input port

Eric Ramat преди 9 години
родител
ревизия
8015570990
променени са 2 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. 6 6
      src/tests/multithreading/lifegame/graph_builder.hpp
  2. 1 0
      src/tests/multithreading/lifegame/graph_manager.hpp

+ 6 - 6
src/tests/multithreading/lifegame/graph_builder.hpp

@@ -35,8 +35,8 @@ using namespace paradevs::tests::boost_graph;
 namespace paradevs { namespace tests {
         namespace multithreading { namespace lifegame {
 
-const int NCOLUMNS = 50;
-const int NLINES = 50;
+const int NCOLUMNS = 10;
+const int NLINES = 10;
 
 class GraphBuilder
 {
@@ -50,9 +50,9 @@ public:
                OutputEdgeList& output_edges,
                Connections& parent_connections)
     {
-        /*std::vector < std::string > parameters = {
-            "HEM", "rande", "diff", "ratio"
-        };*/
+        // std::vector < std::string > parameters = {
+        //     "HEM", "rande", "diff", "ratio"
+        // };
         std::vector < std::string > parameters = {
              "HEM", "gggp", "diff", "ratio"
         };
@@ -64,7 +64,7 @@ public:
         Connections connections;
 
         generate(go);
-        std::cout << "Nbrs models : " << num_vertices(go) << std::endl;
+        // std::cout << "Nbrs models : " << num_vertices(go) << std::endl;
         uint contraction_coef = 200;//num_vertices(go);
         output_edges = OutputEdgeList(cluster_number);
         if (contraction_coef_flag) {

+ 1 - 0
src/tests/multithreading/lifegame/graph_manager.hpp

@@ -103,6 +103,7 @@ public:
                 CellParameters >(ss.str(),
                                  CellParameters(neighbour_number));
             _simulators[g[*vertexIt]._index]->add_out_port("out");
+            _simulators[g[*vertexIt]._index]->add_in_port("in");
             FlatGraphManager < Parameters >::add_child(
                 _simulators[g[*vertexIt]._index]);
         }