diff --git a/cpp/particles/abstract_particles_output.hpp b/cpp/particles/abstract_particles_output.hpp index 6dc85cebba83e8650329700f15284081301ba3c5..7a6a364c9ac21adc94d916f51fa74559df604d24 100644 --- a/cpp/particles/abstract_particles_output.hpp +++ b/cpp/particles/abstract_particles_output.hpp @@ -151,7 +151,7 @@ public: my_rank, &mpi_com_writer) ); } - virtual ~abstract_particles_output(){ + virtual ~abstract_particles_output() noexcept(false){ if(current_is_involved){ AssertMpi( MPI_Comm_free(&mpi_com_writer) ); } diff --git a/cpp/particles/particles_utils.hpp b/cpp/particles/particles_utils.hpp index f1e0c790cd9c02ffb714bb555455662134346ee4..3b215035916b66dd5f53e7eb01b51554c4d6f35d 100644 --- a/cpp/particles/particles_utils.hpp +++ b/cpp/particles/particles_utils.hpp @@ -41,7 +41,7 @@ #ifndef AssertMpi -#define AssertMpi(X) if(MPI_SUCCESS != (X)) { printf("MPI Error at line %d\n",__LINE__); fflush(stdout) ; throw std::runtime_error("Stop from from mpi erro"); } +#define AssertMpi(X) if(MPI_SUCCESS != (X)) { printf("MPI Error at line %d\n",__LINE__); fflush(stdout) ; throw std::runtime_error("Stop from from mpi error"); } #endif enum IDX_COMPONENT_3D {