Skip to content
Snippets Groups Projects
Commit dd8b8bce authored by Henry Weller's avatar Henry Weller
Browse files

csvSetWriter: Corrected axis header

Resolves bug-report https://bugs.openfoam.org/view.php?id=2455
parent b167c95f
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -25,8 +25,6 @@ License ...@@ -25,8 +25,6 @@ License
#include <cctype> #include <cctype>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
inline void Foam::word::stripInvalid() inline void Foam::word::stripInvalid()
...@@ -175,6 +173,5 @@ inline Foam::word Foam::operator&(const word& a, const word& b) ...@@ -175,6 +173,5 @@ inline Foam::word Foam::operator&(const word& a, const word& b)
} }
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* // // ************************************************************************* //
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -147,7 +147,7 @@ namespace Foam ...@@ -147,7 +147,7 @@ namespace Foam
os << nl; os << nl;
} }
} // end namespace }
template<class Type> template<class Type>
...@@ -183,17 +183,24 @@ void Foam::csvSetWriter<Type>::writeCoordHeader ...@@ -183,17 +183,24 @@ void Foam::csvSetWriter<Type>::writeCoordHeader
Ostream& os Ostream& os
) const ) const
{ {
const word axisName(points.axis());
if (points.hasVectorAxis()) 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); writeSeparator(os);
} }
} }
else else
{ {
os << points.axis(); os << axisName;
writeSeparator(os); writeSeparator(os);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment