mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use objectRegistry/IOobjectList sorted instead of lookupClass
- in most cases a parallel-consistent order is required. Even when the order is not important, it will generally require fewer allocations to create a UPtrList of entries instead of a HashTable or even a wordList.
This commit is contained in:
@ -79,8 +79,8 @@ Foam::tmp<GeoField> Foam::getField
|
||||
{
|
||||
// Move field to the cache
|
||||
IOobject newIO(tfield(), *cache);
|
||||
newIO.readOpt(IOobject::NO_READ);
|
||||
newIO.writeOpt(IOobject::NO_WRITE);
|
||||
newIO.readOpt(IOobjectOption::NO_READ);
|
||||
newIO.writeOpt(IOobjectOption::NO_WRITE);
|
||||
|
||||
tfield.ref().checkOut(); // Paranoid
|
||||
cache->store(new GeoField(newIO, tfield));
|
||||
|
||||
Reference in New Issue
Block a user