Fixed issue with open file being reopened.

This commit is contained in:
Christopher LaChance 2017-10-31 13:56:04 -05:00 committed by GitHub
parent cf75a15be8
commit a68ea46f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ std::string Trick::MonteVarFile::get_next_value() {
void Trick::MonteVarFile::set_file_name(std::string in_file_name) {
delete input_file_stream;
input_file_stream = new std::ifstream(in_file_name.c_str(), std::ifstream::in);
input_file_stream = new std::ifstream();
if (input_file_stream->fail()) {
std::stringstream string_stream;