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:
@ -1166,8 +1166,14 @@ Foam::label Foam::decomposedBlockData::numBlocks(const fileName& fName)
|
||||
)
|
||||
{
|
||||
dictionary headerDict(is);
|
||||
is.version(headerDict.lookup("version"));
|
||||
is.format(headerDict.lookup("format"));
|
||||
is.version
|
||||
(
|
||||
IOstreamOption::versionNumber
|
||||
(
|
||||
headerDict.get<float>("version")
|
||||
)
|
||||
);
|
||||
is.format(headerDict.get<word>("format"));
|
||||
|
||||
// Obtain number of blocks directly
|
||||
if (headerDict.readIfPresent("blocks", nBlocks))
|
||||
|
||||
Reference in New Issue
Block a user