vtkPVFoamVolFields, semiImplicitSource: Use VolInternalField<Type> to simplify code

This commit is contained in:
Henry Weller
2022-12-07 11:55:53 +00:00
parent 818eed7a3d
commit 456b7e31ee
2 changed files with 5 additions and 5 deletions

View File

@ -282,14 +282,14 @@ void Foam::vtkPVFoam::convertVolInternalFields
if
(
iter()->headerClassName()
!= VolField<Type>::Internal::typeName
!= VolInternalField<Type>::typeName
)
{
continue;
}
// Load field
typename VolField<Type>::Internal tf
VolInternalField<Type> tf
(
*iter(),
mesh
@ -370,7 +370,7 @@ void Foam::vtkPVFoam::convertVolFieldBlock
template<class Type>
void Foam::vtkPVFoam::convertVolInternalFieldBlock
(
const typename VolField<Type>::Internal& tf,
const VolInternalField<Type>& tf,
vtkMultiBlockDataSet* output,
const arrayRange& range,
const List<polyDecomp>& decompLst
@ -398,7 +398,7 @@ void Foam::vtkPVFoam::convertVolInternalFieldBlock
template<class Type>
void Foam::vtkPVFoam::convertVolInternalField
(
const typename VolField<Type>::Internal& tf,
const VolInternalField<Type>& tf,
vtkMultiBlockDataSet* output,
const arrayRange& range,
const label datasetNo,

View File

@ -100,7 +100,7 @@ void Foam::fv::semiImplicitSource::addSupType
const VolField<Type>& psi = eqn.psi();
typename VolField<Type>::Internal Su
VolInternalField<Type> Su
(
IOobject
(