diff --git a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C b/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C index ad7e75b70b..15aebc08b8 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C +++ b/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C @@ -204,8 +204,8 @@ Foam::CSV::CSV ) : DataEntry(entryName), - TableBase(entryName, dict.subDict(type() + ext)), - coeffs_(dict.subDict(type() + ext)), + TableBase(entryName, dict.subDict(entryName + ext)), + coeffs_(dict.subDict(entryName + ext)), nHeaderLine_(readLabel(coeffs_.lookup("nHeaderLine"))), refColumn_(readLabel(coeffs_.lookup("refColumn"))), componentColumns_(coeffs_.lookup("componentColumns")), diff --git a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.H b/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.H index 8adbc4b204..78476adc80 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.H +++ b/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -29,8 +29,8 @@ Description e.g. time \verbatim - csvFile; - csvFileCoeffs + csvFile; + Coeffs { nHeaderLine 4; refColumn 0; // reference column index diff --git a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSVIO.C b/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSVIO.C index 778de9a92f..72a120f4ce 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSVIO.C +++ b/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSVIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -61,7 +61,7 @@ void Foam::CSV::writeData(Ostream& os) const { DataEntry::writeData(os); os << token::END_STATEMENT << nl; - os << indent << word(type() + "Coeffs") << nl; + os << indent << word(this->name() + "Coeffs") << nl; os << indent << token::BEGIN_BLOCK << incrIndent << nl; // Note: for TableBase write the dictionary entries it needs but not diff --git a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.C b/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.C index 985a050021..2674a04c34 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.C +++ b/src/OpenFOAM/primitives/functions/DataEntry/DataEntry/DataEntry.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -215,5 +215,4 @@ Foam::DataEntry::dimIntegrate #include "DataEntryIO.C" - // ************************************************************************* // diff --git a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.C b/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.C index a30251be3e..9119148a17 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.C +++ b/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,10 +31,10 @@ template Foam::TableFile::TableFile(const word& entryName, const dictionary& dict) : DataEntry(entryName), - TableBase(entryName, dict.subDict(type() + "Coeffs")), + TableBase(entryName, dict.subDict(entryName + "Coeffs")), fName_("none") { - const dictionary coeffs(dict.subDict(type() + "Coeffs")); + const dictionary coeffs(dict.subDict(entryName + "Coeffs")); coeffs.lookup("fileName") >> fName_; if (coeffs.found("dimensions")) diff --git a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H b/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H index 8cca0b05cc..23cb53f4e8 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H +++ b/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFile.H @@ -28,8 +28,8 @@ Description Templated table container data entry where data is read from file. \verbatim - tableFile; - tableFileCoeffs + tableFile; + Coeffs { dimensions [0 0 1 0 0]; // optional dimensions fileName dataFile; // name of data file diff --git a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFileIO.C b/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFileIO.C index cbfa4585e6..7178a33392 100644 --- a/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFileIO.C +++ b/src/OpenFOAM/primitives/functions/DataEntry/TableFile/TableFileIO.C @@ -53,7 +53,7 @@ void Foam::TableFile::writeData(Ostream& os) const DataEntry::writeData(os); os << token::END_STATEMENT << nl - << indent << word(type() + "Coeffs") << nl + << indent << word(this->name() + "Coeffs") << nl << indent << token::BEGIN_BLOCK << nl << incrIndent; // Note: for TableBase write the dictionary entries it needs but not