Bug fix: making copy on object registry lookup

This commit is contained in:
Hrvoje Jasak 2010-11-08 23:29:05 +00:00
parent 7a44fb806b
commit 101b52d260

View file

@ -138,7 +138,7 @@ void Foam::dsmcFields::write()
iDofMeanName
);
volVectorField fDMean = obr_.lookupObject<volVectorField>
const volVectorField& fDMean = obr_.lookupObject<volVectorField>
(
fDMeanName
);