Commit c75b6622 authored by GILLES Sebastien's avatar GILLES Sebastien

#1461 Fix potential issue in PetscVectorIO test.

parent e3c041d1
......@@ -135,16 +135,19 @@ namespace MoReFEM::TestNS::PetscNS::VectorIONS
FilesystemNS::File::Remove(ascii_file, __FILE__, __LINE__);
}
if (mpi.IsRootProcessor())
{
const auto binary_file = GetProgramWiseBinaryFile();
if (FilesystemNS::File::DoExist(binary_file))
FilesystemNS::File::Remove(binary_file, __FILE__, __LINE__);
}
{
const auto ascii_file = GetProgramWiseAsciiFile();
if (FilesystemNS::File::DoExist(ascii_file))
FilesystemNS::File::Remove(ascii_file, __FILE__, __LINE__);
{
const auto binary_file = GetProgramWiseBinaryFile();
if (FilesystemNS::File::DoExist(binary_file))
FilesystemNS::File::Remove(binary_file, __FILE__, __LINE__);
}
{
const auto ascii_file = GetProgramWiseAsciiFile();
if (FilesystemNS::File::DoExist(ascii_file))
FilesystemNS::File::Remove(ascii_file, __FILE__, __LINE__);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment