diff --git a/src/finiteArea/faMesh/faMeshMapper/faAreaMapper.C b/src/finiteArea/faMesh/faMeshMapper/faAreaMapper.C index 60f6da927..23b2eedbc 100644 --- a/src/finiteArea/faMesh/faMeshMapper/faAreaMapper.C +++ b/src/finiteArea/faMesh/faMeshMapper/faAreaMapper.C @@ -224,11 +224,6 @@ void Foam::faAreaMapper::calcAddressing() const // Get addressing const labelList& mo = fff[fffI].masterObjects(); - forAll (ffe, ffeI) - { - // Get addressing - const labelList& mo = ffe[ffeI].masterObjects(); - // Check if master objects are in faMesh labelList validMo(mo.size()); label nValidMo = 0; @@ -257,7 +252,6 @@ void Foam::faAreaMapper::calcAddressing() const nNewFaces++; } } - } // All faces collected. Reset sizes of lists newFaceLabels.setSize(nNewFaces); diff --git a/src/finiteArea/finiteArea/fac/facDdt.C b/src/finiteArea/finiteArea/fac/facDdt.C index 33baa3490..adfa35ade 100644 --- a/src/finiteArea/finiteArea/fac/facDdt.C +++ b/src/finiteArea/finiteArea/fac/facDdt.C @@ -51,7 +51,7 @@ ddt return fa::faDdtScheme::New ( mesh, - mesh.ddtScheme("ddt(" + dt.name() + ')') + mesh.schemesDict().ddtScheme("ddt(" + dt.name() + ')') )().facDdt(dt); }