diff --git a/src/lagrangian/intermediate/submodels/CloudFunctionObjects/ParticleCollector/ParticleCollector.C b/src/lagrangian/intermediate/submodels/CloudFunctionObjects/ParticleCollector/ParticleCollector.C index 42d4c7a33d7ea9b7f8fb5329afbd62e991ffb4d6..745fe0b31cef4598023f1f5b276862c36a6e3584 100644 --- a/src/lagrangian/intermediate/submodels/CloudFunctionObjects/ParticleCollector/ParticleCollector.C +++ b/src/lagrangian/intermediate/submodels/CloudFunctionObjects/ParticleCollector/ParticleCollector.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -379,9 +379,9 @@ void Foam::ParticleCollector<CloudType>::collectParcelConcentricCircles scalar(nSector_)*theta/constant::mathematical::twoPi ); } - } - hitFaceIDs_.append(secI); + hitFaceIDs_.append(secI); + } } diff --git a/src/meshTools/searchableSurface/searchableCone.C b/src/meshTools/searchableSurface/searchableCone.C index b4c212a92b90539aaf0af8716c3f722fed5096b0..2ed0c2abf0c4e93cb902f773c8b733701897c805 100644 --- a/src/meshTools/searchableSurface/searchableCone.C +++ b/src/meshTools/searchableSurface/searchableCone.C @@ -1075,21 +1075,6 @@ void Foam::searchableCone::getVolumeType volType.setSize(points.size()); volType = volumeType::INSIDE; - scalar magDir = magDir_; - - bool swap = false; - bool swapInner = false; - - if (radius1_ > radius2_) - { - swap = true; - } - - if (innerRadius1_ > innerRadius2_) - { - swapInner = true; - } - forAll(points, pointI) { const point& pt = points[pointI]; @@ -1100,15 +1085,7 @@ void Foam::searchableCone::getVolumeType scalar parallel = v & unitDir_; scalar comp = parallel; scalar compInner = parallel; - if (swap) - { - comp = -(magDir-parallel); - } - if (swapInner) - { - compInner = -(magDir-parallel); - } scalar radius_sec = radius1_+comp*(radius2_-radius1_)/magDir_; diff --git a/src/sampling/probes/probes.C b/src/sampling/probes/probes.C index 862d4870630daa8822a7f60ab338294b64d210b0..078d79673a2f5a4ffb490739b4fc90b1f534fd68 100644 --- a/src/sampling/probes/probes.C +++ b/src/sampling/probes/probes.C @@ -132,8 +132,7 @@ void Foam::probes::findElements(const fvMesh& mesh) << " seems to be on multiple domains:" << " cell " << elementList_[probeI] << " on my domain " << Pstream::myProcNo() - << " and cell " << cellI << " on some other domain." - << endl + << " and cell " << cellI << " on some other domain." << endl << "This might happen if the probe location is on" << " a processor patch. Change the location slightly" << " to prevent this." << endl; @@ -146,8 +145,7 @@ void Foam::probes::findElements(const fvMesh& mesh) << " seems to be on multiple domains:" << " cell " << faceList_[probeI] << " on my domain " << Pstream::myProcNo() - << " and face " << faceI << " on some other domain." - << endl + << " and face " << faceI << " on some other domain." << endl << "This might happen if the probe location is on" << " a processor patch. Change the location slightly" << " to prevent this." << endl; diff --git a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/patchifyObstacles b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/patchifyObstacles index bfe0562df16a44c900c3aca744d64e68c91310db..e184c4dbb5774e0575bf48c4551b8dae7c1f67ca 100755 --- a/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/patchifyObstacles +++ b/tutorials/lagrangian/reactingParcelFilmFoam/hotBoxes/patchifyObstacles @@ -3,7 +3,7 @@ # ========= | # # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # # \\ / O peration | Version: dev # -# \\ / A nd | Web: www.OpenFOAM.com # +# \\ / A nd | Web: www.OpenFOAM.org # # \\/ M anipulation | # #-----------------------------------------------------------------------------# cd ${0%/*} || exit 1 # Run from this directory @@ -71,7 +71,7 @@ for xi in $(seq 1 1 $nx); do echo "processing cube $n" pad="" - if [ $n -lt 10]; then + if [ $n -lt 10 ]; then pad="0" fi