diff --git a/src/OpenFOAM/containers/Lists/List/List.H b/src/OpenFOAM/containers/Lists/List/List.H index 9b28f5461f389e41c2bf1e9ea10d9fba8f08c736..a4f342cc4aad51793337b2d30564cc37f0c22de6 100644 --- a/src/OpenFOAM/containers/Lists/List/List.H +++ b/src/OpenFOAM/containers/Lists/List/List.H @@ -208,6 +208,11 @@ public: //- Return subscript-checked element of UList. inline T& newElmt(const label); + + //- Disallow implicit shallowCopy + void shallowCopy(const UList<T>&) = delete; + + // Member operators //- Assignment from UList operator. Takes linear time. diff --git a/src/OpenFOAM/fields/GeometricFields/SlicedGeometricField/SlicedGeometricField.C b/src/OpenFOAM/fields/GeometricFields/SlicedGeometricField/SlicedGeometricField.C index d49c8b46f8e805611cd6b619df22f2dac7699aff..601e1041c0f9ad2d70ed072720d61aaa81916f82 100644 --- a/src/OpenFOAM/fields/GeometricFields/SlicedGeometricField/SlicedGeometricField.C +++ b/src/OpenFOAM/fields/GeometricFields/SlicedGeometricField/SlicedGeometricField.C @@ -158,7 +158,7 @@ slicedBoundaryField DimensionedField<Type, GeoMesh>::null() ) ); - bf[patchi].shallowCopy(bField[patchi]); + bf[patchi].UList<Type>::shallowCopy(bField[patchi]); } }