BUG: TableBaseIO: write interpolationscheme; update comment

This commit is contained in:
mattijs
2012-04-19 16:47:09 +01:00
parent 2a17ac0f8a
commit af91ab5b91
2 changed files with 12 additions and 6 deletions

View File

@ -32,12 +32,13 @@ Description
<entryName> csvFile;
csvFileCoeffs
{
hasHeaderLine true;
refColumn 0; // reference column index
componentColumns (1 2 3); // component column indices
separator ","; // optional (defaults to ",")
fileName "fileXYZ"; // name of csv data file
outOfBounds clamp; // optional out-of-bounds handling
hasHeaderLine true;
refColumn 0; // reference column index
componentColumns (1 2 3); // component column indices
separator ","; // optional (defaults to ",")
fileName "fileXYZ"; // name of csv data file
outOfBounds clamp; // optional out-of-bounds handling
interpolationScheme linear; // optional interpolation scheme
}
\endverbatim

View File

@ -73,6 +73,11 @@ void Foam::TableBase<Type>::writeEntries(Ostream& os) const
os.writeKeyword("outOfBounds") << boundsHandlingToWord(boundsHandling_)
<< token::END_STATEMENT << nl;
}
if (interpolationScheme_ != "linear")
{
os.writeKeyword("interpolationScheme") << interpolationScheme_
<< token::END_STATEMENT << nl;
}
}