functionObjects/field: Simplified code using the VolField and SurfaceField partial specialisations
replacing the inconsistently named local typedefs and direct use of the more complex GeometricField template types.
This commit is contained in:
@ -44,14 +44,12 @@ namespace functionObjects
|
||||
template<class Type>
|
||||
bool Foam::functionObjects::reconstruct::calcReconstruction()
|
||||
{
|
||||
typedef GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceFieldType;
|
||||
|
||||
if (foundObject<SurfaceFieldType>(fieldName_))
|
||||
if (foundObject<SurfaceField<Type>>(fieldName_))
|
||||
{
|
||||
return store
|
||||
(
|
||||
resultName_,
|
||||
fvc::reconstruct(lookupObject<SurfaceFieldType>(fieldName_)),
|
||||
fvc::reconstruct(lookupObject<SurfaceField<Type>>(fieldName_)),
|
||||
mesh_.changing() && mesh_.solution().cache(resultName_)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user