From eead94dfc157fa8d1f553e90610196df2b0c72e2 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 1 Dec 2024 13:31:07 +0100 Subject: [PATCH] mpirequests::Reset --- libsrc/core/mpi_wrapper.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsrc/core/mpi_wrapper.hpp b/libsrc/core/mpi_wrapper.hpp index c7dfc53a..e8461bb9 100644 --- a/libsrc/core/mpi_wrapper.hpp +++ b/libsrc/core/mpi_wrapper.hpp @@ -95,6 +95,8 @@ namespace ngcore public: NgMPI_Requests() = default; ~NgMPI_Requests() { WaitAll(); } + + void Reset() { requests.SetSize0(); } NgMPI_Requests & operator+= (NgMPI_Request && r) { @@ -539,6 +541,7 @@ namespace ngcore public: NgMPI_Requests & operator+= (NgMPI_Request &&) { return *this; } NgMPI_Requests & operator+= (NG_MPI_Request r) { return *this; } + void Reset() { ; } void WaitAll() { ; } int WaitAny() { return 0; } };