Minor reformatting.

This commit is contained in:
henry
2009-07-14 21:11:36 +01:00
parent bb11fcdbad
commit ce79182495
2 changed files with 30 additions and 28 deletions

View File

@ -63,7 +63,10 @@ void Foam::fieldAverage::addMeanField
const fieldType& baseField = const fieldType& baseField =
obr_.lookupObject<fieldType>(fieldName); obr_.lookupObject<fieldType>(fieldName);
fieldType* fPtr = new fieldType // Store on registry
obr_.store
(
new fieldType
( (
IOobject IOobject
( (
@ -73,12 +76,10 @@ void Foam::fieldAverage::addMeanField
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
baseField 1*baseField
)
); );
// Store on registry
fPtr->store();
meanFieldList[fieldI] = meanFieldName; meanFieldList[fieldI] = meanFieldName;
} }
} }
@ -121,7 +122,9 @@ void Foam::fieldAverage::addPrime2MeanField
const fieldType1& meanField = const fieldType1& meanField =
obr_.lookupObject<fieldType1>(meanFieldList[fieldI]); obr_.lookupObject<fieldType1>(meanFieldList[fieldI]);
fieldType2* fPtr = new fieldType2 obr_.store
(
new fieldType2
( (
IOobject IOobject
( (
@ -132,11 +135,9 @@ void Foam::fieldAverage::addPrime2MeanField
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
sqr(baseField) - sqr(meanField) sqr(baseField) - sqr(meanField)
)
); );
// Store on registry
fPtr->store();
prime2MeanFieldList[fieldI] = meanFieldName; prime2MeanFieldList[fieldI] = meanFieldName;
} }
} }

View File

@ -108,6 +108,7 @@ void fixedEnthalpyFvPatchScalarField::updateCoeffs()
fvPatchScalarField& Tw = fvPatchScalarField& Tw =
const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]); const_cast<fvPatchScalarField&>(thermo.T().boundaryField()[patchi]);
Tw.evaluate(); Tw.evaluate();
operator==(thermo.h(Tw, patchi)); operator==(thermo.h(Tw, patchi));
fixedValueFvPatchScalarField::updateCoeffs(); fixedValueFvPatchScalarField::updateCoeffs();