From 72530d40ba7f85272212fc5fc458d50f6974a379 Mon Sep 17 00:00:00 2001 From: Sergio Ferraris Date: Mon, 25 Nov 2013 10:46:52 +0000 Subject: [PATCH] ENH: adding const access to reactingMixture list --- .../mixtures/reactingMixture/reactingMixture.H | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/thermophysicalModels/reactionThermo/mixtures/reactingMixture/reactingMixture.H b/src/thermophysicalModels/reactionThermo/mixtures/reactingMixture/reactingMixture.H index b29c0758ad..210b9771b7 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/reactingMixture/reactingMixture.H +++ b/src/thermophysicalModels/reactionThermo/mixtures/reactingMixture/reactingMixture.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -96,6 +96,11 @@ public: { return PtrList >::operator[](i); } + + const Reaction& operator [] (const label i) const + { + return PtrList >::operator[](i); + } };