Commit 3801ebe2 authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Changing the precision of the export

parent bd243c80
......@@ -69,13 +69,14 @@ int main(int argc, char** argv)
// Create output file
std::ofstream file(args["output"].c_str(), std::ios_base::trunc);
file.precision(10);
if(d != NULL)
{
for(int i=0; i<d->size(); ++i)
{
vec v = d->get(i) ;
vec x(f->dimX());
vec x(f->dimX());
if(f->input_parametrization() == params::UNKNOWN_INPUT)
{
......@@ -83,7 +84,7 @@ int main(int argc, char** argv)
}
else
{
params::convert(&v[0], d->input_parametrization(), f->input_parametrization(), &x[0]);
params::convert(&v[0], d->input_parametrization(), f->input_parametrization(), &x[0]);
}
vec y2 = f->value(x) ;
......@@ -101,7 +102,7 @@ int main(int argc, char** argv)
{
if(plot_error)
{
file << (v[d->dimX() + u] - y2[u]) << "\t" ;
file << (v[d->dimX() + u] - y2[u]) << "\t" ;
}
else if(linear_plot)
{
......
Supports Markdown
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