Loading src/Ainur/AinurState.h +2 −2 Original line number Diff line number Diff line Loading @@ -88,8 +88,8 @@ public: AinurState() { assert(ZERO_CHAR_STRING_.length() == 1); if (ZERO_CHAR_STRING_[0] != ' ') err("Ainur::AinurState should be a singleton\n"); // if (ZERO_CHAR_STRING_[0] != ' ') // err("Ainur::AinurState should be a singleton\n"); ZERO_CHAR_STRING_[0] = 0; } Loading src/InputNg.h +11 −5 Original line number Diff line number Diff line Loading @@ -202,9 +202,7 @@ public: const InputCheckType& inputCheck() const { return inputCheck_; } private: void internal(PsimagLite::String file) static void readFile(String& data, String file) { std::ifstream fin(file.c_str()); if (!fin || !fin.good() || fin.bad()) { Loading @@ -216,10 +214,18 @@ public: char c = 0; while (!fin.eof()) { fin.get(c); data_ += c; data += c; } fin.close(); } private: void internal(PsimagLite::String file) { readFile(data_, file); internal(); } Loading Loading
src/Ainur/AinurState.h +2 −2 Original line number Diff line number Diff line Loading @@ -88,8 +88,8 @@ public: AinurState() { assert(ZERO_CHAR_STRING_.length() == 1); if (ZERO_CHAR_STRING_[0] != ' ') err("Ainur::AinurState should be a singleton\n"); // if (ZERO_CHAR_STRING_[0] != ' ') // err("Ainur::AinurState should be a singleton\n"); ZERO_CHAR_STRING_[0] = 0; } Loading
src/InputNg.h +11 −5 Original line number Diff line number Diff line Loading @@ -202,9 +202,7 @@ public: const InputCheckType& inputCheck() const { return inputCheck_; } private: void internal(PsimagLite::String file) static void readFile(String& data, String file) { std::ifstream fin(file.c_str()); if (!fin || !fin.good() || fin.bad()) { Loading @@ -216,10 +214,18 @@ public: char c = 0; while (!fin.eof()) { fin.get(c); data_ += c; data += c; } fin.close(); } private: void internal(PsimagLite::String file) { readFile(data_, file); internal(); } Loading