From a777715e15ea550af69eb888d75cb66673166cf5 Mon Sep 17 00:00:00 2001 From: andy <a.heather@opencfd.co.uk> Date: Wed, 20 Oct 2010 16:50:37 +0100 Subject: [PATCH] ENH: Added null constructor to phasePropertiesList --- .../phasePropertiesList/phasePropertiesList.C | 8 +++++++ .../phasePropertiesList/phasePropertiesList.H | 22 ++++++++++++------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.C b/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.C index d71f3f7b196..760917fb544 100644 --- a/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.C +++ b/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.C @@ -27,6 +27,14 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // +Foam::phasePropertiesList::phasePropertiesList() +: + props_(), + phaseTypeNames_(), + stateLabels_() +{} + + Foam::phasePropertiesList::phasePropertiesList ( Istream& is, diff --git a/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.H b/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.H index 23d4996a2ab..321cad2cd30 100644 --- a/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.H +++ b/src/lagrangian/intermediate/phaseProperties/phasePropertiesList/phasePropertiesList.H @@ -65,14 +65,20 @@ class phasePropertiesList public: - //- Constructor - phasePropertiesList - ( - Istream& is, - const wordList& gasNames, - const wordList& liquidNames, - const wordList& solidNames - ); + // Constructors + + //- Construct null + phasePropertiesList(); + + //- Construct from components + phasePropertiesList + ( + Istream& is, + const wordList& gasNames, + const wordList& liquidNames, + const wordList& solidNames + ); + //- Destructor ~phasePropertiesList(); -- GitLab