mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: consistent autoPtr handling in PatchFunction1
This commit is contained in:
@ -108,21 +108,21 @@ ${typeName}PatchFunction1${FieldType}
|
||||
${typeName}PatchFunction1${FieldType}::
|
||||
${typeName}PatchFunction1${FieldType}
|
||||
(
|
||||
const ${typeName}PatchFunction1${FieldType}& ut
|
||||
const ${typeName}PatchFunction1${FieldType}& rhs
|
||||
)
|
||||
:
|
||||
PatchFunction1<${TemplateType}>(ut)
|
||||
PatchFunction1<${TemplateType}>(rhs)
|
||||
{}
|
||||
|
||||
|
||||
${typeName}PatchFunction1${FieldType}::
|
||||
${typeName}PatchFunction1${FieldType}
|
||||
(
|
||||
const ${typeName}PatchFunction1${FieldType}& ut,
|
||||
const ${typeName}PatchFunction1${FieldType}& rhs,
|
||||
const polyPatch& pp
|
||||
)
|
||||
:
|
||||
PatchFunction1<${TemplateType}>(ut, pp)
|
||||
PatchFunction1<${TemplateType}>(rhs, pp)
|
||||
{}
|
||||
|
||||
|
||||
@ -137,7 +137,6 @@ ${typeName}PatchFunction1${FieldType}::value
|
||||
//{{{ begin code
|
||||
${code}
|
||||
//}}} end code
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -81,13 +81,13 @@ public:
|
||||
const bool faceValues = true
|
||||
);
|
||||
|
||||
//- Construct as copy
|
||||
//- Copy construct
|
||||
${typeName}PatchFunction1${FieldType}
|
||||
(
|
||||
const ${typeName}PatchFunction1${FieldType}&
|
||||
);
|
||||
|
||||
//- Construct as copy, resetting patch
|
||||
//- Copy construct, resetting patch
|
||||
${typeName}PatchFunction1${FieldType}
|
||||
(
|
||||
const ${typeName}PatchFunction1${FieldType}&,
|
||||
@ -122,20 +122,20 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
//- Return value as a function of (scalar) independent variable
|
||||
virtual tmp<Field<${TemplateType}>> value(const scalar x) const;
|
||||
//- Return value as a function of (scalar) independent variable
|
||||
virtual tmp<Field<${TemplateType}>> value(const scalar x) const;
|
||||
|
||||
//- Is value constant (i.e. independent of x)
|
||||
virtual bool constant() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
//- Is value constant (i.e. independent of x)
|
||||
virtual bool constant() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//- Is value uniform (i.e. independent of coordinate)
|
||||
virtual bool uniform() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
//- Is value uniform (i.e. independent of coordinate)
|
||||
virtual bool uniform() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user