Clears out the temporary file before each run.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user