From 14df9bde95974305c0ec8df656a89deb34f5e8e2 Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Sun, 7 Feb 2016 22:51:01 +0000
Subject: [PATCH] fixedNormalInletOutletVelocity: Minor reorganization

---
 ...malInletOutletVelocityFvPatchVectorField.C | 38 +++++++++----------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C
index f45f9893c16..b432f7884e9 100644
--- a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C
+++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2014 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2014-2016 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -55,43 +55,43 @@ fixedNormalInletOutletVelocityFvPatchVectorField
 Foam::fixedNormalInletOutletVelocityFvPatchVectorField::
 fixedNormalInletOutletVelocityFvPatchVectorField
 (
-    const fixedNormalInletOutletVelocityFvPatchVectorField& ptf,
     const fvPatch& p,
     const DimensionedField<vector, volMesh>& iF,
-    const fvPatchFieldMapper& mapper
+    const dictionary& dict
 )
 :
-    directionMixedFvPatchVectorField(ptf, p, iF, mapper),
-    phiName_(ptf.phiName_),
-    fixTangentialInflow_(ptf.fixTangentialInflow_),
+    directionMixedFvPatchVectorField(p, iF),
+    phiName_(dict.lookupOrDefault<word>("phi", "phi")),
+    fixTangentialInflow_(dict.lookup("fixTangentialInflow")),
     normalVelocity_
     (
-        fvPatchVectorField::New(ptf.normalVelocity(), p, iF, mapper)
+        fvPatchVectorField::New(p, iF, dict.subDict("normalVelocity"))
     )
-{}
+{
+    fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
+    refValue() = normalVelocity();
+    refGrad() = vector::zero;
+    valueFraction() = symmTensor::zero;
+}
 
 
 Foam::fixedNormalInletOutletVelocityFvPatchVectorField::
 fixedNormalInletOutletVelocityFvPatchVectorField
 (
+    const fixedNormalInletOutletVelocityFvPatchVectorField& ptf,
     const fvPatch& p,
     const DimensionedField<vector, volMesh>& iF,
-    const dictionary& dict
+    const fvPatchFieldMapper& mapper
 )
 :
-    directionMixedFvPatchVectorField(p, iF),
-    phiName_(dict.lookupOrDefault<word>("phi", "phi")),
-    fixTangentialInflow_(dict.lookup("fixTangentialInflow")),
+    directionMixedFvPatchVectorField(ptf, p, iF, mapper),
+    phiName_(ptf.phiName_),
+    fixTangentialInflow_(ptf.fixTangentialInflow_),
     normalVelocity_
     (
-        fvPatchVectorField::New(p, iF, dict.subDict("normalVelocity"))
+        fvPatchVectorField::New(ptf.normalVelocity(), p, iF, mapper)
     )
-{
-    fvPatchVectorField::operator=(vectorField("value", dict, p.size()));
-    refValue() = normalVelocity();
-    refGrad() = vector::zero;
-    valueFraction() = symmTensor::zero;
-}
+{}
 
 
 Foam::fixedNormalInletOutletVelocityFvPatchVectorField::
-- 
GitLab