Code recovery MPI part

This commit is contained in:
HRN
2024-10-18 23:10:42 +03:30
parent f317cef0ef
commit ba8f307c56
4 changed files with 10 additions and 20 deletions

View File

@ -50,16 +50,16 @@ bool pFlow::processorAB2BoundaryIntegration::correctPStruct(real dt, const realx
#ifndef BoundaryModel1
if(this->isBoundaryMaster())
{
const uint32 thisIndex = thisBoundaryIndex();
const uint32 thisIndex = thisBoundaryIndex();
const auto& AB2 = static_cast<const AdamsBashforth2&>(Integration());
const auto& dy1View = AB2.BoundaryField(thisIndex).neighborProcField().deviceView();
const auto& dy1View = AB2.BoundaryField(thisIndex).neighborProcField().deviceView();
const auto& velView = vel.BoundaryField(thisIndex).neighborProcField().deviceView();
const auto& xposView = boundary().neighborProcPoints().deviceView();
const rangeU32 aRange(0u, dy1View.size());
return AB2Kernels::intAllActive(
const rangeU32 aRange(0u, dy1View.size());
return AB2Kernels::intAllActive(
"AB2Integration::correctPStruct."+this->boundaryName(),
dt,
aRange,
aRange,
xposView,
velView,
dy1View

View File

@ -36,16 +36,9 @@ pFlow::MPI::MPISimulationDomain::MPISimulationDomain(systemControl& control)
bool pFlow::MPI::MPISimulationDomain::createBoundaryDicts()
{
if(!prepareBoundaryDicts())
{
return false;
}
auto& boundaries = this->subDict("boundaries");
dictionary& boundaries = this->subDict("boundaries");
auto& thisBoundaries = this->subDict(thisBoundariesDictName());
dictionary& thisBoundaries = this->subDict(thisBoundariesDictName());
auto neighbors = findPlaneNeighbors();
@ -133,8 +126,7 @@ bool pFlow::MPI::MPISimulationDomain::setThisDomain()
fatalErrorInFunction<< "Failed to distributed domains"<<endl;
return false;
}
return true;
}

View File

@ -291,7 +291,7 @@ bool pFlow::MPI::boundaryProcessor::transferData(
callAgain = false;
return false;
}
callAgain = true;
return true;
}
else if(step == 3) // to recieve data
@ -367,10 +367,7 @@ bool pFlow::MPI::boundaryProcessor::transferData(
callAgain = false;
return true;
}
callAgain = false;
return true;
}
bool

View File

@ -22,6 +22,7 @@ Licence:
#define __boundaryProcessor_hpp__
#include "boundaryBase.hpp"
#include "timeInfo.hpp"
#include "mpiTypes.hpp"
#include "dataSender.hpp"
#include "dataReciever.hpp"