@@ -1571,6 +1571,7 @@ void read_fiber_temporal_values_file(FiberReinforcementStressParameters& fiber_p
15711571 std::string line;
15721572
15731573 while (std::getline (temporal_values_file, line)) {
1574+ line.erase (std::remove (line.begin (), line.end (), ' \r ' ), line.end ());
15741575 if (line == " " ) {
15751576 continue ;
15761577 }
@@ -1859,6 +1860,7 @@ void read_fourier_coeff_values_file(const std::string& file_name, bcType& lBc)
18591860 int n = 0 ;
18601861
18611862 while (std::getline (temporal_values_file, line)) {
1863+ line.erase (std::remove (line.begin (), line.end (), ' \r ' ), line.end ());
18621864 if (line == " " ) {
18631865 continue ;
18641866 }
@@ -1884,6 +1886,7 @@ void read_fourier_coeff_values_file(const std::string& file_name, bcType& lBc)
18841886 int j = 0 ;
18851887
18861888 while (std::getline (temporal_values_file, line)) {
1889+ line.erase (std::remove (line.begin (), line.end (), ' \r ' ), line.end ());
18871890 if (line == " " ) {
18881891 continue ;
18891892 }
@@ -1926,6 +1929,7 @@ void read_fourier_coeff_values_file(const std::string& file_name, bfType& lBf)
19261929 int n = 0 ;
19271930
19281931 while (std::getline (temporal_values_file, line)) {
1932+ line.erase (std::remove (line.begin (), line.end (), ' \r ' ), line.end ());
19291933 if (line == " " ) {
19301934 continue ;
19311935 }
@@ -1951,6 +1955,7 @@ void read_fourier_coeff_values_file(const std::string& file_name, bfType& lBf)
19511955 int j = 0 ;
19521956
19531957 while (std::getline (temporal_values_file, line)) {
1958+ line.erase (std::remove (line.begin (), line.end (), ' \r ' ), line.end ());
19541959 if (line == " " ) {
19551960 continue ;
19561961 }
@@ -2600,6 +2605,7 @@ void read_temporal_values(const std::string& file_name, bcType& lBc)
26002605 std::string line;
26012606
26022607 while (std::getline (temporal_values_file, line)) {
2608+ line.erase (std::remove (line.begin (), line.end (), ' \r ' ), line.end ());
26032609 if (line == " " ) {
26042610 continue ;
26052611 }
@@ -2608,14 +2614,15 @@ void read_temporal_values(const std::string& file_name, bcType& lBc)
26082614
26092615 while (!line_input.eof ()) {
26102616 line_input >> value;
2617+
26112618 if (line_input.fail ()) {
2612- throw std::runtime_error (" Error reading values for the temporal values file '" + file_name + " ' for line '" + line + " '." );
2619+ throw std::runtime_error (" 1: Error reading values for the temporal values file '" + file_name + " ' for line '" + line + " '." );
26132620 }
26142621 values.push_back (value);
26152622 }
26162623
26172624 if (values.size () != 2 ) {
2618- throw std::runtime_error (" Error reading values for the temporal values file '" + file_name + " ' for line '" + line + " '." );
2625+ throw std::runtime_error (" 2: Error reading values for the temporal values file '" + file_name + " ' for line '" + line + " '." );
26192626 }
26202627
26212628 temporal_values.push_back (values);
@@ -2657,6 +2664,7 @@ void read_temporal_values(const std::string& file_name, bfType& lBf)
26572664 std::string line;
26582665
26592666 while (std::getline (temporal_values_file, line)) {
2667+ line.erase (std::remove (line.begin (), line.end (), ' \r ' ), line.end ());
26602668 if (line == " " ) {
26612669 continue ;
26622670 }
0 commit comments