mirror of https://github.com/CGAL/cgal
Small fix
This commit is contained in:
parent
3a096512b3
commit
fc14e2c87c
|
|
@ -19,7 +19,9 @@
|
|||
#include "CLI11.hpp"
|
||||
#include "Timer.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.141592653589793238462643383279502884L
|
||||
#endif
|
||||
|
||||
template <class GeomTraits>
|
||||
struct SphereValue {
|
||||
|
|
@ -246,6 +248,4 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
|
||||
std::cout << "internal timer: " << ms << std::endl;
|
||||
|
||||
CGAL::IO::write_OFF("result.off", points, polygons);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from benchmark_util import *
|
||||
|
||||
scenario = "SCENARIO_GRID_SPHERE"
|
||||
kernel = "KERNEL_SIMPLE_CARTESIAN_FLOAT"
|
||||
scenario = "SCENARIO_IMPLICIT_SPHERE"
|
||||
kernel = "KERNEL_SIMPLE_CARTESIAN_DOUBLE"
|
||||
algorithm = "ALGO_MARCHING_CUBES"
|
||||
tag = "TAG_PARALLEL"
|
||||
min_threads = 1
|
||||
|
|
|
|||
|
|
@ -29,10 +29,10 @@ def build(scenario, kernel, algorithm, tag):
|
|||
def execute(n, threads, times=1):
|
||||
time = 0
|
||||
for i in range(times):
|
||||
process = run(["likwid", "-g", "MEM_DP", "-c", "S0:0-" + str(threads - 1), "./build/benchmark", "-N", str(n)], False)
|
||||
process = run(["likwid-perfctr", "-g", "MEM_DP", "-C", "S0:0-" + str(threads - 1), "./build/benchmark", "-N", str(n)], False)
|
||||
|
||||
for line in process.stdout.readlines():
|
||||
print(line)
|
||||
print(line, end='')
|
||||
|
||||
m = re.search(r'internal timer:\s*(\d*)', line)
|
||||
if m is not None:
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ void mc_construct_triangles(const int i_case, const Vertices_& vertices, PointRa
|
|||
points[t_id * 3 + 2] = vertices[eg2];
|
||||
|
||||
// insert new triangle in list
|
||||
PolygonRange::value_type triangle(3);
|
||||
typename PolygonRange::value_type triangle(3);
|
||||
triangle[0] = t_id * 3 + 2;
|
||||
triangle[1] = t_id * 3 + 1;
|
||||
triangle[2] = t_id * 3 + 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue