Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/file_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "file_reader.hpp"

#include <vector>
#include <general/text.hpp>

using namespace std;
using namespace mfem;
Expand Down Expand Up @@ -143,7 +142,10 @@ bool FileReader::CheckStreamIsComplex(std::istream &solin, bool parallel)
solin >> ws;
getline(solin, buff);
solin.seekg(pos);
mfem::filter_dos(buff);
if (!buff.empty() && *buff.rbegin() == '\r')
{
buff.resize(buff.size()-1);
}
const char *header = (parallel)?("ParComplexGridFunction"):
("ComplexGridFunction");
return (buff == header);
Expand Down
1 change: 0 additions & 1 deletion lib/stream_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <array>
#include <algorithm>
#include <general/text.hpp>

using namespace std;
using namespace mfem;
Expand Down
Loading