Skip to content
Snippets Groups Projects
Commit 85f82355 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Commented rounding in OutputDataReadStrategy

parent f9175437
No related branches found
No related tags found
No related merge requests found
...@@ -67,8 +67,9 @@ OutputData<double > *OutputDataReadStreamIMA::readOutputData(std::istream &input ...@@ -67,8 +67,9 @@ OutputData<double > *OutputDataReadStreamIMA::readOutputData(std::istream &input
while( std::getline(input_stream, sline)) while( std::getline(input_stream, sline))
{ {
std::string str = Utils::String::round_doubles(sline, 10); //std::string str = Utils::String::round_doubles(sline, 10);
vdouble1d_t buff = Utils::String::parse_doubles(str); //vdouble1d_t buff = Utils::String::parse_doubles(str);
vdouble1d_t buff = Utils::String::parse_doubles(sline);
buff_2d.push_back(buff); buff_2d.push_back(buff);
} }
...@@ -123,8 +124,8 @@ OutputData<double > *OutputDataReadStreamV1::readOutputData(std::istream &input_ ...@@ -123,8 +124,8 @@ OutputData<double > *OutputDataReadStreamV1::readOutputData(std::istream &input_
while( std::getline(input_stream, sline) ) while( std::getline(input_stream, sline) )
{ {
if(sline[0] == '#') continue; if(sline[0] == '#') continue;
std::string str = Utils::String::round_doubles(sline, 10); //std::string str = Utils::String::round_doubles(sline, 10);
vdouble1d_t buff = Utils::String::parse_doubles(str); vdouble1d_t buff = Utils::String::parse_doubles(sline);
if( buff_xaxis.empty() ) { if( buff_xaxis.empty() ) {
buff_xaxis = buff; buff_xaxis = buff;
......
...@@ -41,6 +41,7 @@ vdouble1d_t Utils::String::parse_doubles(const std::string& str) ...@@ -41,6 +41,7 @@ vdouble1d_t Utils::String::parse_doubles(const std::string& str)
if( buff_1d.empty() ) { if( buff_1d.empty() ) {
std::cout << "OutputDataReadFileASCII::parse_doubles() -> " std::cout << "OutputDataReadFileASCII::parse_doubles() -> "
"Warning! No parsed values in 1d vector of doubles." << std::endl; "Warning! No parsed values in 1d vector of doubles." << std::endl;
std::cout << "Line '" << str << "'" << std::endl;
} }
return buff_1d; return buff_1d;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment