diff --git a/src/OpenFOAM/primitives/strings/word/wordI.H b/src/OpenFOAM/primitives/strings/word/wordI.H index 587adfac99b3d8378e3c1768e1d52f06012d0ae1..7873387a3bbe1a69ae3d9c4244398a43f0647f94 100644 --- a/src/OpenFOAM/primitives/strings/word/wordI.H +++ b/src/OpenFOAM/primitives/strings/word/wordI.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -25,8 +25,6 @@ License #include <cctype> -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // inline void Foam::word::stripInvalid() @@ -175,6 +173,5 @@ inline Foam::word Foam::operator&(const word& a, const word& b) } } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // ************************************************************************* // diff --git a/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C b/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C index 8d69d32cb3773e25a77e11d6aa8d3416f552588e..e87fb0338c35836a236a76ecb11782622ae955b2 100644 --- a/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C +++ b/src/fileFormats/sampledSetWriters/csv/csvSetWriter.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -147,7 +147,7 @@ namespace Foam os << nl; } -} // end namespace +} template<class Type> @@ -183,17 +183,24 @@ void Foam::csvSetWriter<Type>::writeCoordHeader Ostream& os ) const { + const word axisName(points.axis()); + if (points.hasVectorAxis()) { - forAll(points, i) + for + ( + word::const_iterator iter = axisName.begin(); + iter != axisName.end(); + ++iter + ) { - os << points.axis()[i]; + os << *iter; writeSeparator(os); } } else { - os << points.axis(); + os << axisName; writeSeparator(os); } }