Commit 5a48a7fb authored by GILLES Sebastien's avatar GILLES Sebastien

#1473 Add a safety exception.

parent 10cbd9bc
......@@ -73,6 +73,13 @@ namespace MoReFEM::Advanced::MeshNS
oconv << output_directory << "/mesh_data.lua";
partition_data_file_ = oconv.str();
if (FilesystemNS::File::DoExist(partition_data_file_))
{
oconv.str("");
oconv << "File " << partition_data_file_ << " already exists!";
throw Exception(oconv.str(), __FILE__, __LINE__);
}
std::ofstream out;
{
......
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