From e7d81dfe04dfa916d6b0abf7b49eb533118ef2ef Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Thu, 14 Jun 2018 13:12:13 +0200 Subject: [PATCH] COMP: stop some icc warnings - change "\%" -> "%" in plain string --- .../pressurePIDControlInletVelocityFvPatchVectorField.C | 2 +- src/lagrangian/basic/particle/particle.C | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressurePIDControlInletVelocity/pressurePIDControlInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressurePIDControlInletVelocity/pressurePIDControlInletVelocityFvPatchVectorField.C index 68c6e78cb36..2101867dc5e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressurePIDControlInletVelocity/pressurePIDControlInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressurePIDControlInletVelocity/pressurePIDControlInletVelocityFvPatchVectorField.C @@ -350,7 +350,7 @@ void Foam::pressurePIDControlInletVelocityFvPatchVectorField::updateCoeffs() << dimensionedScalar("U", dimVelocity, newQ/patchA) << endl << " " << dimensionedScalar("deltaP", pDimensions, deltaP) - << " (" << mag(error)*100 << "\% " + << " (" << mag(error)*100 << "% " << (error < 0 ? "below" : "above") << " the target)" << endl; } diff --git a/src/lagrangian/basic/particle/particle.C b/src/lagrangian/basic/particle/particle.C index 8f0273d1e74..7438a122881 100644 --- a/src/lagrangian/basic/particle/particle.C +++ b/src/lagrangian/basic/particle/particle.C @@ -714,7 +714,7 @@ Foam::scalar Foam::particle::trackToStationaryTri if (debug) { Info<< "Hit on tet face " << i << " at local coordinate " - << y0 + mu*Tx1 << ", " << mu*detA*100 << "\% of the " + << y0 + mu*Tx1 << ", " << mu*detA*100 << "% of the " << "way along the track" << endl; } @@ -758,7 +758,7 @@ Foam::scalar Foam::particle::trackToStationaryTri Info<< "End local coordinates = " << yH << endl << "End global coordinates = " << position() << endl << "Tracking displacement = " << position() - x0 << endl - << muH*detA*100 << "\% of the step from " << stepFraction_ << " to " + << muH*detA*100 << "% of the step from " << stepFraction_ << " to " << stepFraction_ + fraction << " completed" << endl << endl; } -- GitLab