diff --git a/applications/utilities/mesh/conversion/sammToFoam/readPoints.C b/applications/utilities/mesh/conversion/sammToFoam/readPoints.C index c6b793ff82..00c0a3cc37 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/readPoints.C +++ b/applications/utilities/mesh/conversion/sammToFoam/readPoints.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License diff --git a/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C b/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C index 5c364266f6..bc931fd5c7 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/readPoints.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -86,7 +86,6 @@ void starMesh::readPoints(const scalar scaleFactor) if (pointsFile.good()) { label pointLabel; - scalar x, y, z; maxLabel = -1; while (pointsFile) @@ -97,9 +96,9 @@ void starMesh::readPoints(const scalar scaleFactor) maxLabel = max(maxLabel, pointLabel); - x = readVtxCmpt(pointsFile); - y = readVtxCmpt(pointsFile); - z = readVtxCmpt(pointsFile); + readVtxCmpt(pointsFile); + readVtxCmpt(pointsFile); + readVtxCmpt(pointsFile); readToNl(pointsFile); diff --git a/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C b/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C index db8765f8cc..4a73cf1204 100644 --- a/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C +++ b/applications/utilities/mesh/conversion/writeMeshObj/writeMeshObj.C @@ -44,6 +44,7 @@ Description #include "meshTools.H" #include "cellSet.H" #include "faceSet.H" +#include "SubField.H" using namespace Foam; diff --git a/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C b/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C index 827fc25bda..b41304488d 100644 --- a/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C +++ b/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C @@ -44,6 +44,7 @@ Description #include "labelIOList.H" #include "wedgePolyPatch.H" #include "plane.H" +#include "SubField.H" using namespace Foam; diff --git a/applications/utilities/miscellaneous/foamDebugSwitches/Make/options b/applications/utilities/miscellaneous/foamDebugSwitches/Make/options index abee4af7eb..988d2a4edb 100644 --- a/applications/utilities/miscellaneous/foamDebugSwitches/Make/options +++ b/applications/utilities/miscellaneous/foamDebugSwitches/Make/options @@ -33,7 +33,6 @@ EXE_LIBS = \ -linterfaceProperties \ -lIOFunctionObjects \ -ljobControl \ - -lkineticTheoryModel \ -llagrangian \ -llagrangianIntermediate \ -llaminarFlameSpeedModels \ diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C index 099e8d4f37..77b53c5815 100644 --- a/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C +++ b/applications/utilities/postProcessing/graphics/PV3Readers/PV3FoamReader/vtkPV3Foam/vtkPV3FoamMeshVolume.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -383,16 +383,12 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh forAll(quadFcs, quadI) { - label thisCellI; - if (substituteCell) { - thisCellI = cellI; substituteCell = false; } else { - thisCellI = mesh.nCells() + addCellI; superCells[addCellI++] = cellI; } @@ -430,16 +426,12 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh forAll(triFcs, triI) { - label thisCellI; - if (substituteCell) { - thisCellI = cellI; substituteCell = false; } else { - thisCellI = mesh.nCells() + addCellI; superCells[addCellI++] = cellI; } diff --git a/src/OpenFOAM/include/checkTimeOptions.H b/src/OpenFOAM/include/checkTimeOptions.H index f5e7248322..a52fc1d05b 100644 --- a/src/OpenFOAM/include/checkTimeOptions.H +++ b/src/OpenFOAM/include/checkTimeOptions.H @@ -2,11 +2,11 @@ // checkTimeOptions.H // ~~~~~~~~~~~~~~~~~~ - Foam::label startTime = 0; - Foam::label endTime = Times.size(); +Foam::label startTime = 0; +Foam::label endTime = Times.size(); // unless -constant is present, skip startTime if it is "constant" -# include "checkConstantOption.H" +#include "checkConstantOption.H" // check -time and -latestTime options -# include "checkTimeOption.H" +#include "checkTimeOption.H" diff --git a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshClear.C b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshClear.C index 464bfd60b0..7350b8d62f 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshClear.C +++ b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshClear.C @@ -24,6 +24,8 @@ License \*---------------------------------------------------------------------------*/ #include "primitiveMesh.H" +#include "indexedOctree.H" +#include "treeDataCell.H" #include "demandDrivenData.H" #include "indexedOctree.H" #include "treeDataCell.H" diff --git a/src/engine/ignition/ignitionSite.C b/src/engine/ignition/ignitionSite.C index b83580bd92..866dfb5ae8 100644 --- a/src/engine/ignition/ignitionSite.C +++ b/src/engine/ignition/ignitionSite.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -51,7 +51,6 @@ void Foam::ignitionSite::findIgnitionCells(const fvMesh& mesh) cellVolumes_[0] = vols[ignCell]; scalar minDist = GREAT; - label nearestCell = 0; label nIgnCells = 1; forAll(centres, celli) @@ -60,7 +59,6 @@ void Foam::ignitionSite::findIgnitionCells(const fvMesh& mesh) if (dist < minDist) { - nearestCell = celli; minDist = dist; } diff --git a/src/lagrangian/basic/InteractionLists/InteractionLists.C b/src/lagrangian/basic/InteractionLists/InteractionLists.C index 3a138449b5..552ae6fb70 100644 --- a/src/lagrangian/basic/InteractionLists/InteractionLists.C +++ b/src/lagrangian/basic/InteractionLists/InteractionLists.C @@ -654,8 +654,6 @@ void Foam::InteractionLists::findExtendedProcBbsInRange { List