Skip to content
Snippets Groups Projects
Commit 7fe0ded9 authored by mattijs's avatar mattijs
Browse files

changed to UPtrList

parent 972190e9
Branches
Tags
No related merge requests found
......@@ -83,11 +83,11 @@ void Foam::wallDistData<TransferType>::correct()
labelHashSet wallPatchIDs(getPatchIDs(wallPolyPatch::typeName));
// Collect pointers to data on patches
List<Field<Type>*> patchData(mesh.boundaryMesh().size());
UPtrList<Field<Type> > patchData(mesh.boundaryMesh().size());
forAll(field_.boundaryField(), patchI)
{
patchData[patchI] = &(field_.boundaryField()[patchI]);
patchData.set(patchI, &field_.boundaryField()[patchI]);
}
// Do mesh wave
......
......@@ -22,8 +22,6 @@ License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
\*---------------------------------------------------------------------------*/
#include "patchDataWave.H"
......@@ -50,8 +48,7 @@ void Foam::patchDataWave<TransferType>::setChangedFaces
{
const polyPatch& patch = mesh.boundaryMesh()[patchI];
const Field<Type>& patchField =
*initialPatchValuePtrs_[patchI];
const Field<Type>& patchField = initialPatchValuePtrs_[patchI];
forAll(patch.faceCentres(), patchFaceI)
{
......@@ -176,7 +173,7 @@ Foam::patchDataWave<TransferType>::patchDataWave
(
const polyMesh& mesh,
const labelHashSet& patchIDs,
const List<Field<Type>*>& initialPatchValuePtrs,
const UPtrList<Field<Type> >& initialPatchValuePtrs,
const bool correctWalls
)
:
......
......@@ -45,7 +45,7 @@ SourceFiles
#include "cellDistFuncs.H"
#include "FieldField.H"
#include "UPtrList.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -78,7 +78,7 @@ private:
labelHashSet patchIDs_;
//- Reference to initial extra data at patch faces
const List<Field<Type>*>& initialPatchValuePtrs_;
const UPtrList<Field<Type> >& initialPatchValuePtrs_;
//- Do accurate distance calculation for near-wall cells.
bool correctWalls_;
......@@ -129,7 +129,7 @@ public:
(
const polyMesh& mesh,
const labelHashSet& patchIDs,
const List<Field<Type>*>& initialPatchValuePtrs,
const UPtrList<Field<Type> >& initialPatchValuePtrs,
bool correctWalls = true
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment