Changeset - 4b35371bc534
[Not reviewed]
0 1 1
Tom Bannink - 8 years ago 2017-07-13 15:19:43
tom.bannink@cwi.nl
Add more accurate triangle counts datafile
1 file changed:
Changeset was too big and was cut off... Show full diff anyway
0 comments (0 inline, 0 general)
cpp/switchchain_exponent.cpp
Show inline comments
 
@@ -100,27 +100,27 @@ int main(int argc, char* argv[]) {
 
                int measureSkip = getMeasureSkip(numVertices, tau);
 
                for (int i = 0; i < measurements; ++i) {
 
                    for (int j = 0; j < measureSkip; ++j)
 
                        chain.doMove(false);
 
                    //trianglesTotal += chain.g.getTrackedTriangles();
 
                    trianglesTotal += chain.g.countTriangles();
 
                }
 
                float avgTriangles =
 
                    float(trianglesTotal) / float(measurements);
 

	
 
                std::cout << "Measuring done. " << std::flush;
 

	
 
                if (outputComma)
 
                    outfile << ',' << '\n';
 
                outputComma = true;
 

	
 
                outfile << '{' << '{' << numVertices << ',' << tau << '}';
 
                outfile << ',' << avgTriangles;
 
                outfile << '}' << std::flush;
 

	
 
                std::cout << "Output done." << std::endl;
 
            }
 
        }
 
    }
 
    outfile << ',' << '}';
 
    outfile << '\n' << '}';
 
    return 0;
 
}

Changeset was too big and was cut off... Show full diff anyway

0 comments (0 inline, 0 general)