Skip to content
Snippets Groups Projects
Commit 050856e5 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Displace execution stoppage to VTKWriter to ease development

parent e5a39459
Branches
Tags
1 merge request!11Feature/mpi
......@@ -361,6 +361,13 @@ class VTKWriter
fout << "</VTKFile>\n";
}
m_file_number++;
if (parallel::size() > 1) {
perr() << __FILE__ << ':' << __LINE__ << ": stopping parallel execution\n";
parallel::barrier();
parallel::messenger().destroy();
std::exit(0);
}
}
VTKWriter(const std::string& base_filename,
......
......@@ -251,13 +251,6 @@ class AcousticSolver
double acoustic_dt(const CellValue<const double>& Vj,
const CellValue<const double>& cj) const
{
if (parallel::size() > 1) {
perr() << __FILE__ << ':' << __LINE__ << ": stopping parallel execution\n";
parallel::barrier();
parallel::messenger().destroy();
std::exit(0);
}
const NodeValuePerCell<const double>& ljr = m_mesh_data.ljr();
const auto& cell_to_node_matrix
= m_mesh.connectivity().cellToNodeMatrix();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment