From a11a6867c727d346e15243b5d2de99643f78a301 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 10 Jul 2013 12:28:18 +0100 Subject: [PATCH] BUG: wallPoint: I/O operators missing space --- src/meshTools/cellDist/wallPoint/wallPoint.C | 4 ++-- src/meshTools/cellDist/wallPoint/wallPointData.C | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/meshTools/cellDist/wallPoint/wallPoint.C b/src/meshTools/cellDist/wallPoint/wallPoint.C index 16f67df42a..3f4aa14399 100644 --- a/src/meshTools/cellDist/wallPoint/wallPoint.C +++ b/src/meshTools/cellDist/wallPoint/wallPoint.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -29,7 +29,7 @@ License Foam::Ostream& Foam::operator<<(Foam::Ostream& os, const Foam::wallPoint& wDist) { - return os << wDist.origin() << wDist.distSqr(); + return os << wDist.origin() << token::SPACE << wDist.distSqr(); } Foam::Istream& Foam::operator>>(Foam::Istream& is, Foam::wallPoint& wDist) diff --git a/src/meshTools/cellDist/wallPoint/wallPointData.C b/src/meshTools/cellDist/wallPoint/wallPointData.C index 7379e2c113..1fbbf05f8a 100644 --- a/src/meshTools/cellDist/wallPoint/wallPointData.C +++ b/src/meshTools/cellDist/wallPoint/wallPointData.C @@ -39,9 +39,10 @@ Ostream& operator<< const wallPointData& wDist ) { - operator<<(os, static_cast(wDist)); - - return os << wDist.data(); + return os + << static_cast(wDist) + << token::SPACE + << wDist.data(); } @@ -52,9 +53,7 @@ Istream& operator>> wallPointData& wDist ) { - operator>>(is, static_cast(wDist)); - - return is >> wDist.data_; + return is >> static_cast(wDist) >> wDist.data_; }