diff --git a/src/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C b/src/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C index 54497a652..9f15e1af4 100644 --- a/src/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C +++ b/src/conjugateHeatTransfer/fvPatchFields/chtRcThermalDiffusivity/chtRcThermalDiffusivityFvPatchScalarField.C @@ -261,7 +261,7 @@ Foam::chtRcThermalDiffusivityFvPatchScalarField::calcThermalDiffusivity const scalarField kOwn = fOwn/(1.0 - p.weights())/mld.magDelta(p.index()); const scalarField kNei = fNei/p.weights()/mld.magDelta(p.index()); - + tmp kTmp(new scalarField(p.size())); scalarField& k = kTmp(); diff --git a/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C b/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C index 3d0fab6bf..45c459f87 100644 --- a/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C +++ b/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C @@ -38,9 +38,83 @@ Description #include "primitiveMesh.H" #include "processorPolyPatch.H" #include "cyclicPolyPatch.H" +#include "SortableList.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // +bool Foam::domainDecomposition::addInterProcessorBoundaryData +( + const label& procI, + const label& procJ, + const label faceI, + + List >& interProcBoundaries, + List > >& interProcBFaces +) const +{ + // Algorithm: Syncronously loop through the two lists containing all + // neighbouring processor for a given processor and check whether this + // processor is already in the list of neighbours. If the processor is + // already there, simply append the face. If it's not there, append the + // processor and the first face. + + // Get iterators to beginning of the two lists + SLList