Commit 8e437522 authored by incardon's avatar incardon

Adding logarithmic option for pdata

parent ed35b4cd
......@@ -338,7 +338,8 @@ void grid_iterator_performance_write_report(GoogleChart & cg,
names,
gnames,
x_string,
y_string);
y_string,
true);
}
/*! \brief Function for verlet performance report
......@@ -366,13 +367,6 @@ void grid_m2p_performance_write_report(GoogleChart & cg,
openfpm::vector<std::string> names;
openfpm::vector<std::string> gnames;
/* yp_mean.add();
yp_dev.add();
yp_mean.last().add(time_iterator_stencil_mean);
yp_mean.last().add(time_iterator_normal_mean);
yp_dev.last().add(time_iterator_stencil_dev);
yp_dev.last().add(time_iterator_normal_dev);*/
yp_mean.resize(1);
yp_dev.resize(1);
for (size_t i = 0 ; i < yp_mean.size() ; i++)
......@@ -408,7 +402,8 @@ void grid_m2p_performance_write_report(GoogleChart & cg,
names,
gnames,
x_string,
y_string);
y_string,
true);
}
......
......@@ -94,7 +94,8 @@ template<unsigned int dim> void cl_comp_normal_vs_hilbert_force_time(GoogleChart
names,
gnames,
x_string,
y_string);
y_string,
true);
}
/*! \brief Output the graph normal cell-list vs Hilbert cell-list (Total time)
......@@ -178,7 +179,8 @@ template<unsigned int dim> void cl_comp_normal_vs_hilbert_create_time(GoogleChar
names,
gnames,
x_string,
y_string);
y_string,
true);
}
......
......@@ -83,7 +83,8 @@ template<unsigned int dim> void cl_part_time(GoogleChart & cg,
names,
gnames,
x_string,
y_string);
y_string,
false);
}
template<unsigned int dim> void cl_part_reorder_time(GoogleChart & cg,
......
......@@ -305,7 +305,8 @@ void StandardPerformanceGraph(std::string file_mean,
openfpm::vector<std::string> & names,
openfpm::vector<std::string> & gnames,
std::string x_string,
std::string y_string)
std::string y_string,
bool use_log)
{
openfpm::vector<openfpm::vector<openfpm::vector<double>>> y_ref_mean;
openfpm::vector<openfpm::vector<openfpm::vector<double>>> y_ref_dev;
......@@ -391,7 +392,11 @@ void StandardPerformanceGraph(std::string file_mean,
std::string chart_area;
if (warning_vlevel.size() != 0)
addchartarea(chart_area,warning_vlevel.get(i));
options2.more = GC_Y_LOG + "," + GC_ZOOM + chart_area;
if (use_log == true)
{options2.more = GC_Y_LOG + "," + GC_ZOOM + chart_area;}
else
{options2.more = GC_ZOOM + chart_area;}
options2.title = gnames.get(i);
cg.AddLinesGraph(x,y2.get(i),yn2,options2);
......
......@@ -304,7 +304,8 @@ template<unsigned int dim> void vd_verlet_performance_write_report(GoogleChart &
names,
gnames,
x_string,
y_string);
y_string,
true);
}
//////////////////// TIME TO CREATE //////////////////////////
......@@ -364,7 +365,8 @@ template<unsigned int dim> void vd_verlet_performance_write_report(GoogleChart &
names,
gnames,
x_string,
y_string);
y_string,
true);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment