From 5a25556b8a15bb3f79bfe0c29b656f8e2b66a4da Mon Sep 17 00:00:00 2001 From: HRN Date: Fri, 24 May 2024 00:10:15 +0330 Subject: [PATCH] changing blocking-recive to non-blocking (in boundaryProcessor) to improve MPI run --- .../processorBoundarySphereInteraction.cpp | 4 +- .../boundaries/boundaryProcessor.cpp | 86 +++++++++++-------- .../boundaries/boundaryProcessor.hpp | 6 +- 3 files changed, 59 insertions(+), 37 deletions(-) diff --git a/src/Interaction/sphereInteraction/boundaries/processorBoundarySphereInteraction/processorBoundarySphereInteraction.cpp b/src/Interaction/sphereInteraction/boundaries/processorBoundarySphereInteraction/processorBoundarySphereInteraction.cpp index f0e2a9a1..d55ab2b3 100644 --- a/src/Interaction/sphereInteraction/boundaries/processorBoundarySphereInteraction/processorBoundarySphereInteraction.cpp +++ b/src/Interaction/sphereInteraction/boundaries/processorBoundarySphereInteraction/processorBoundarySphereInteraction.cpp @@ -106,7 +106,7 @@ bool pFlow::MPI::processorBoundarySphereInteraction::sphereSphereInter return true; } - if(iter % 1000 == 0u) + if(iter % 100 == 0u) { pOutput<<"inter "<< inter_.totalTime()<::sphereSphereInter return true; } - if(iter % 1000 == 0u) + if(iter % 100 == 0u) { pOutput<<"recive "<< recv_.totalTime()< sender_; @@ -87,7 +91,7 @@ namespace pFlow::MPI boundaryProcessor, dictionary); - bool beforeIteration(uint32 iterNum, real t, real dt) override; + bool beforeIteration(uint32 step, uint32 iterNum, real t, real dt) override; bool iterate(uint32 iterNum, real t, real dt) override;