FIX: replaced temp internalField with DimensionedField::null (fixes #3082)

This commit is contained in:
Vaggelis Papoutsis
2024-01-24 14:39:20 +02:00
committed by Mark OLESEN
parent 0ae3da8560
commit 312c7a1c32
2 changed files with 5 additions and 5 deletions

View File

@ -50,13 +50,13 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//volFields
//- volFields
typedef typename volScalarField::Boundary boundaryScalarField;
typedef typename volVectorField::Boundary boundaryVectorField;
typedef typename volTensorField::Boundary boundaryTensorField;
//pointFields - actually a plain list of fields with dimension equal to the
// number of points per patch
//- pointFields - actually a plain list of fields with dimension equal to the
//- number of points per patch
typedef List<Field<scalar>> pointBoundaryScalarField;
typedef List<Field<vector>> pointBoundaryVectorField;
typedef List<Field<tensor>> pointBoundaryTensorField;

View File

@ -89,7 +89,7 @@ createZeroBoundaryPtr
Boundary;
// Make sure that the patchFields to be generated will be of type
// calculated, even if they are of constraint type
// calculated, even if they are of constraint type.
// Necessary to avoid unexpected behaviour when computing sensitivities
// on symmetry patches (not a good practice either way)
const fvBoundaryMesh& bm = mesh.boundary();
@ -113,7 +113,7 @@ createZeroBoundaryPtr
new Boundary
(
mesh.boundary(),
mesh.V()*pTraits<Type>::zero, // Dummy internal field,
DimensionedField<Type, volMesh>::null(),
wordList(bm.size(), fvPatchFieldBase::calculatedType()),
actualPatchTypes
)