From 16de7dc20b5b51a7658547f11e252824b8540f58 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 20 Oct 2010 10:59:59 +0100 Subject: [PATCH] ENH: Added null constructor to InteractionLists --- .../basic/InteractionLists/InteractionLists.C | 24 +++++++++++++++++++ .../basic/InteractionLists/InteractionLists.H | 3 +++ 2 files changed, 27 insertions(+) diff --git a/src/lagrangian/basic/InteractionLists/InteractionLists.C b/src/lagrangian/basic/InteractionLists/InteractionLists.C index 391a41aa5b..33bc7d5e93 100644 --- a/src/lagrangian/basic/InteractionLists/InteractionLists.C +++ b/src/lagrangian/basic/InteractionLists/InteractionLists.C @@ -1076,6 +1076,29 @@ void Foam::InteractionLists::writeReferredWallFaces() const // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // +template +Foam::InteractionLists::InteractionLists(const polyMesh& mesh) +: + mesh_(mesh), + cloud_(mesh_, "NULL_Cloud", IDLList()), + writeCloud_(false), + cellMapPtr_(), + wallFaceMapPtr_(), + globalTransforms_(mesh_), + maxDistance_(0.0), + dil_(), + dwfil_(), + ril_(), + rilInverse_(), + cellIndexAndTransformToDistribute_(), + wallFaceIndexAndTransformToDistribute_(), + referredWallFaces_(), + UName_("unknown_UName"), + referredWallData_(), + referredParticles_() +{} + + template Foam::InteractionLists::InteractionLists ( @@ -1106,6 +1129,7 @@ Foam::InteractionLists::InteractionLists buildInteractionLists(); } + // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // template diff --git a/src/lagrangian/basic/InteractionLists/InteractionLists.H b/src/lagrangian/basic/InteractionLists/InteractionLists.H index 8382c77bd7..2ff4ecfd5e 100644 --- a/src/lagrangian/basic/InteractionLists/InteractionLists.H +++ b/src/lagrangian/basic/InteractionLists/InteractionLists.H @@ -216,6 +216,9 @@ public: // Constructors + //- Construct null from mesh + InteractionLists(const polyMesh& mesh); + //- Construct and call function to create all information from // the mesh InteractionLists