Clears out the temporary file before each run.

This commit is contained in:
Dongryeol Lee
2010-11-10 16:12:27 +00:00
parent d067589a7a
commit 73804447e4
@@ -103,6 +103,12 @@ int main(int argc, char *argv[]) {
return 0;
}
// Delete the teporary files and put a barrier.
std::stringstream temporary_file_name;
temporary_file_name << "tmp_file" << world.rank();
remove(temporary_file_name.str().c_str());
world.barrier();
// Initialize the memory allocator.
core::table::global_m_file_ = new core::table::MemoryMappedFile();
core::table::global_m_file_->Init(