From 3c69749b47d6d2a9ecf08bb21e8034df678f86c6 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 7 Oct 2008 13:10:16 +0100 Subject: [PATCH 1/6] intel compiler from Ayad --- .../fieldAverageItem/fieldAverageItem.H | 32 +++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/postProcessing/fieldAverage/fieldAverageItem/fieldAverageItem.H b/src/postProcessing/fieldAverage/fieldAverageItem/fieldAverageItem.H index 1bcb5689bb..a8b8830016 100644 --- a/src/postProcessing/fieldAverage/fieldAverageItem/fieldAverageItem.H +++ b/src/postProcessing/fieldAverage/fieldAverageItem/fieldAverageItem.H @@ -102,15 +102,6 @@ private: baseType base_; - // Private Member Functions - - //- Disallow default bitwise copy construct -// fieldAverageItem(const fieldAverageItem&); - - //- Disallow default bitwise assignment -// void operator=(const fieldAverageItem&); - - public: // Constructors @@ -175,6 +166,29 @@ public: void operator=(const fieldAverageItem&); + // Friend Operators + + friend bool operator== + ( + const fieldAverageItem& a, + const fieldAverageItem& b + ) + { + return + a.fieldName_ == b.fieldName_ + && a.mean_ == b.mean_ + && a.prime2Mean_ == b.prime2Mean_ + && a.base_ == b.base_; + } + + friend bool operator!= + ( + const fieldAverageItem& a, + const fieldAverageItem& b + ) + { + return !(a == b); + } // IOstream Operators From 69c567167d218a7b6e5358cf30bd5b6be9f71de0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 7 Oct 2008 18:02:50 +0100 Subject: [PATCH 2/6] intel compiler messages --- .../rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C index 4db4faac50..5a17820680 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C @@ -157,9 +157,8 @@ void maxwellSlipUFvPatchVectorField::updateCoeffs() if(thermalCreep_) { - const GeometricField& vsfT = - this->db().objectRegistry:: - lookupObject >("T"); + const volScalarField& vsfT = + this->db().objectRegistry::lookupObject("T"); label patchi = this->patch().index(); const fvPatchScalarField& pT = vsfT.boundaryField()[patchi]; Field gradpT = fvc::grad(vsfT)().boundaryField()[patchi]; From 0bbc8fd2c42cf6f8abd27671fe6aff431f493d68 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 7 Oct 2008 18:24:56 +0100 Subject: [PATCH 3/6] parallel checkMesh --- .../manipulation/checkMesh/checkGeometry.C | 82 +++++++++++------ .../manipulation/checkMesh/checkTopology.C | 25 +++-- .../manipulation/checkMesh/printMeshStats.C | 91 +++++++++++++------ .../polyBoundaryMesh/polyBoundaryMesh.C | 4 +- 4 files changed, 141 insertions(+), 61 deletions(-) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C index 6b1a10d90e..8eb1f3f05f 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C @@ -39,10 +39,15 @@ Foam::label Foam::checkGeometry(const polyMesh& mesh, const bool allGeometry) if (mesh.checkEdgeAlignment(true, validDirs, &nonAlignedPoints)) { noFailedChecks++; + label nNonAligned = returnReduce + ( + nonAlignedPoints.size(), + sumOp