From 050856e5e7a0e4e4b815186e8c94d671cb2b8351 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Mon, 28 Jan 2019 14:17:02 +0100 Subject: [PATCH] Displace execution stoppage to VTKWriter to ease development --- src/output/VTKWriter.hpp | 7 +++++++ src/scheme/AcousticSolver.hpp | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/output/VTKWriter.hpp b/src/output/VTKWriter.hpp index dc3d1bb12..f26e0b4fd 100644 --- a/src/output/VTKWriter.hpp +++ b/src/output/VTKWriter.hpp @@ -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, diff --git a/src/scheme/AcousticSolver.hpp b/src/scheme/AcousticSolver.hpp index 04d2a524e..3cb320957 100644 --- a/src/scheme/AcousticSolver.hpp +++ b/src/scheme/AcousticSolver.hpp @@ -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(); -- GitLab