diff --git a/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C b/src/OpenFOAM/primitives/functions/DataEntry/CSV/CSV.C index ad7e75b70b7b3ef8083af0552af21ca7859b133f..15aebc08b84b69bb4ba1c4020ba31a9a64b8ee2f 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<Type>::CSV ) : DataEntry<Type>(entryName), - TableBase<Type>(entryName, dict.subDict(type() + ext)), - coeffs_(dict.subDict(type() + ext)), + TableBase<Type>(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 8adbc4b2042dd3cbd42f2363a3cf0498d4d542ec..78476adc80a6aad3923f403bf01d73c320b75a71 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 - <entryName> csvFile; - csvFileCoeffs + <entryName> csvFile; + <entryName>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 778de9a92fe911662b8d0d13f6e74eef93666eed..72a120f4cefc3ab051641910326cd1d9a892975d 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<Type>::writeData(Ostream& os) const { DataEntry<Type>::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 985a0500215cc761c87a86f49489ad88ab147ad5..2674a04c3494be33a9d7ab9bdd4d062288037d37 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<Type>::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 a30251be3e6b5e98e0ca96daee28d837772136cd..9119148a178cb09971d8ef9aa018ad4d46ab299c 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<class Type> Foam::TableFile<Type>::TableFile(const word& entryName, const dictionary& dict) : DataEntry<Type>(entryName), - TableBase<Type>(entryName, dict.subDict(type() + "Coeffs")), + TableBase<Type>(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 8cca0b05cca1f9f60dbe7b3b049e0b0e5137ff4d..23cb53f4e893b99bc35983684f5b8df914e47cb3 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 - <entryName> tableFile; - tableFileCoeffs + <entryName> tableFile; + <entryName>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 cbfa4585e6aaae6b2214a6144c7ae85ce29684bd..7178a33392f92ec47a5dc1f58397cd03a0b53b97 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<Type>::writeData(Ostream& os) const DataEntry<Type>::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