mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: rename dictionary::read<T> to dictionary::readEntry<T>
- avoids compiler ambiguity when virtual methods such as IOdictionary::read() exist. - the method was introduced in 1806, and was thus not yet widely used
This commit is contained in:
@ -260,7 +260,7 @@ bool pointNoise::read(const dictionary& dict)
|
||||
inputFileNames_.resize(1);
|
||||
|
||||
// Note: lookup uses same keyword as used by the CSV constructor
|
||||
dict.read("file", inputFileNames_.first());
|
||||
dict.readEntry("file", inputFileNames_.first());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@ -431,15 +431,16 @@ bool surfaceNoise::read(const dictionary& dict)
|
||||
if (!dict.readIfPresent("files", inputFileNames_))
|
||||
{
|
||||
inputFileNames_.resize(1);
|
||||
dict.read("file", inputFileNames_.first());
|
||||
dict.readEntry("file", inputFileNames_.first());
|
||||
}
|
||||
|
||||
dict.readIfPresent("fftWriteInterval", fftWriteInterval_);
|
||||
dict.readIfPresent("p", pName_);
|
||||
|
||||
dict.read("reader", readerType_);
|
||||
readerType_ = dict.get<word>("reader");
|
||||
|
||||
const word writerType(dict.get<word>("writer"));
|
||||
|
||||
dictionary optDict
|
||||
(
|
||||
dict.subOrEmptyDict("writeOptions").subOrEmptyDict(writerType)
|
||||
|
||||
Reference in New Issue
Block a user