BUG: CSV data entry - corrected writing - mantis #971

This commit is contained in:
andy
2013-08-20 09:50:05 +01:00
parent 395cde4e5d
commit 00e73a488b
2 changed files with 17 additions and 7 deletions

View File

@ -50,10 +50,7 @@ Foam::Ostream& Foam::operator<<
}
// Check state of Ostream
os.check
(
"Ostream& operator<<(Ostream&, const CSV<Type>&)"
);
os.check("Ostream& operator<<(Ostream&, const CSV<Type>&)");
return os;
}
@ -83,11 +80,15 @@ void Foam::CSV<Type>::writeData(Ostream& os) const
os << componentColumns_;
os.format(IOstream::BINARY);
}
else
{
os << componentColumns_;
}
os << token::END_STATEMENT << nl;
os.writeKeyword("separator") << string(separator_)
<< token::END_STATEMENT << nl;
os.writeKeyword("mergeSeparators") << string(mergeSeparators_)
os.writeKeyword("mergeSeparators") << mergeSeparators_
<< token::END_STATEMENT << nl;
os.writeKeyword("fileName") << fName_ << token::END_STATEMENT << nl;
os << decrIndent << indent << token::END_BLOCK << endl;

View File

@ -22,8 +22,17 @@ boundaryField
{
movingWall
{
type fixedValue;
value uniform (1 0 0);
type uniformFixedValue;
uniformValue csvFile;
csvFileCoeffs
{
nHeaderLine 1;
refColumn 0;
componentColumns (1 2 3);
mergeSeparators no;
fileName "$FOAM_CASE/csvData";
separator " ";
}
}
fixedWalls