Apply coding style recommendations:

- space between keyword and bracket in 'for(..)', 'if(..)', 'while(..)'
This commit is contained in:
Mark Olesen
2009-11-30 08:55:03 +01:00
parent 6bdb7fb7b5
commit 909e6b27e4
148 changed files with 343 additions and 342 deletions

View File

@ -1,4 +1,4 @@
if(planeMapping && targetPatchNamePresent && cut.cut())
if (planeMapping && targetPatchNamePresent && cut.cut())
{
//Map variables U, phi & k
//Info<< typeInfo("isoLESmodel") << endl;
@ -10,7 +10,7 @@
forAll(cutCells, cCellsI)
{
if(sgsModel.type() == "SpalartAllmaras")
if (sgsModel.type() == "SpalartAllmaras")
{
planeNuTilda[cCellsI] = sgsModel.nuTilda()()[cutCells[cCellsI]];
}
@ -21,7 +21,7 @@
planeU[cCellsI] = U[cutCells[cCellsI]];
}
if(sgsModel.type() == "SpalartAllmaras")
if (sgsModel.type() == "SpalartAllmaras")
{
Info<< "Mapping NuTilda." << endl;
sgsModel.nuTilda()().boundaryField()[targetPatchNumber] ==

View File

@ -60,7 +60,7 @@ bool Foam::curveSet::trackToBoundary
// Alias
const point& trackPt = singleParticle.position();
while(true)
while (true)
{
// Local geometry info
const vector offset = sampleCoords_[sampleI+1] - sampleCoords_[sampleI];
@ -145,7 +145,7 @@ void Foam::curveSet::calcSamples
<< sampleCoords_ << exit(FatalError);
}
point oldPoint = sampleCoords_[0];
for(label sampleI = 1; sampleI < sampleCoords_.size(); sampleI++)
for (label sampleI = 1; sampleI < sampleCoords_.size(); sampleI++)
{
if (mag(sampleCoords_[sampleI] - oldPoint) < SMALL)
{
@ -169,7 +169,7 @@ void Foam::curveSet::calcSamples
label sampleI = 0;
point lastSample(GREAT, GREAT, GREAT);
while(true)
while (true)
{
// Get boundary intersection
point trackPt;
@ -243,7 +243,7 @@ void Foam::curveSet::calcSamples
// No intersection found. Go to next point
sampleI++;
}
} while((trackCellI == -1) && (sampleI < sampleCoords_.size() - 1));
} while ((trackCellI == -1) && (sampleI < sampleCoords_.size() - 1));
if (sampleI == sampleCoords_.size() - 1)
{
@ -278,7 +278,7 @@ void Foam::curveSet::calcSamples
);
// fill sampleSegments
for(label i = samplingPts.size() - 1; i >= startSegmentI; --i)
for (label i = samplingPts.size() - 1; i >= startSegmentI; --i)
{
samplingSegments.append(segmentI);
}

View File

@ -65,7 +65,7 @@ bool Foam::faceOnlySet::trackToBoundary
// Alias
const point& trackPt = singleParticle.position();
while(true)
while (true)
{
point oldPoint = trackPt;
@ -199,7 +199,7 @@ void Foam::faceOnlySet::calcSamples
// index in bHits; current boundary intersection
label bHitI = 1;
while(true)
while (true)
{
if (trackFaceI != -1)
{
@ -230,7 +230,7 @@ void Foam::faceOnlySet::calcSamples
);
// fill sampleSegments
for(label i = samplingPts.size() - 1; i >= startSegmentI; --i)
for (label i = samplingPts.size() - 1; i >= startSegmentI; --i)
{
samplingSegments.append(segmentI);
}

View File

@ -54,7 +54,7 @@ void Foam::midPointSet::genSamples()
label sampleI = 0;
while(true)
while (true)
{
// calculate midpoint between sampleI and sampleI+1 (if in same segment)
while

View File

@ -56,7 +56,7 @@ void Foam::midPointAndFaceSet::genSamples()
label sampleI = 0;
while(true)
while (true)
{
// sampleI is start of segment

View File

@ -65,7 +65,7 @@ bool Foam::uniformSet::nextSample
samplePt += offset;
sampleI++;
for(; sampleI < nPoints_; sampleI++)
for (; sampleI < nPoints_; sampleI++)
{
scalar s = (samplePt - currentPt) & normOffset;
@ -103,7 +103,7 @@ bool Foam::uniformSet::trackToBoundary
// Alias
const point& trackPt = singleParticle.position();
while(true)
while (true)
{
// Find next samplePt on/after trackPt. Update samplePt, sampleI
if (!nextSample(trackPt, offset, smallDist, samplePt, sampleI))
@ -305,7 +305,7 @@ void Foam::uniformSet::calcSamples
// index in bHits; current boundary intersection
label bHitI = 1;
while(true)
while (true)
{
// Initialize tracking starting from trackPt
Cloud<passiveParticle> particles(mesh(), IDLList<passiveParticle>());
@ -329,7 +329,7 @@ void Foam::uniformSet::calcSamples
);
// fill sampleSegments
for(label i = samplingPts.size() - 1; i >= startSegmentI; --i)
for (label i = samplingPts.size() - 1; i >= startSegmentI; --i)
{
samplingSegments.append(segmentI);
}

View File

@ -192,7 +192,7 @@ void Foam::rawSurfaceWriter<Type>::writeData
{
// header
os << "# xx xy xz yy yz ";
for(int i=0; i<6; i++)
for (int i=0; i<6; i++)
{
os << fieldName << "_" << i << " ";
}