Skip to content
Snippets Groups Projects
Commit 7261334d authored by sergio's avatar sergio
Browse files

STY: changing map distribute

parent c9911b5e
Branches
Tags
No related merge requests found
...@@ -159,9 +159,6 @@ void turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs() ...@@ -159,9 +159,6 @@ void turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs()
const fvPatch& nbrPatch = const fvPatch& nbrPatch =
refCast<const fvMesh>(nbrMesh).boundary()[samplePatchI]; refCast<const fvMesh>(nbrMesh).boundary()[samplePatchI];
// Force recalculation of mapping and schedule
//const mapDistribute& distMap = mpp.map();
scalarField Tc = patchInternalField(); scalarField Tc = patchInternalField();
scalarField& Tp = *this; scalarField& Tp = *this;
...@@ -176,33 +173,12 @@ void turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs() ...@@ -176,33 +173,12 @@ void turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs()
scalarField TcNbr = nbrField.patchInternalField(); scalarField TcNbr = nbrField.patchInternalField();
mpp.map().distribute(TcNbr); mpp.map().distribute(TcNbr);
/*
mapDistribute::distribute
(
Pstream::defaultCommsType,
distMap.schedule(),
distMap.constructSize(),
distMap.subMap(), // what to send
distMap.constructMap(), // what to receive
TcNbr
);
*/
// Swap to obtain full local values of neighbour K*delta // Swap to obtain full local values of neighbour K*delta
scalarField KDeltaNbr = nbrField.K(TcNbr)*nbrPatch.deltaCoeffs(); scalarField KDeltaNbr = nbrField.K(TcNbr)*nbrPatch.deltaCoeffs();
mpp.map().distribute(KDeltaNbr); mpp.map().distribute(KDeltaNbr);
/*
mapDistribute::distribute
(
Pstream::defaultCommsType,
distMap.schedule(),
distMap.constructSize(),
distMap.subMap(), // what to send
distMap.constructMap(), // what to receive
KDeltaNbr
);
*/
scalarField KDelta = K(*this)*patch().deltaCoeffs(); scalarField KDelta = K(*this)*patch().deltaCoeffs();
scalarField Qr(Tp.size(), 0.0); scalarField Qr(Tp.size(), 0.0);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment