From 3d5d3b84d1b67501fbb66dea51f1e3ec0792618f Mon Sep 17 00:00:00 2001
From: Andrew Heather <a.heather@opencfd.co.uk>
Date: Thu, 14 Jun 2018 15:11:48 +0100
Subject: [PATCH] GIT: Adding files missed in commit 8540e6f

---
 .../ddtSchemes/ddtScheme/ddtSchemeBase.C      | 45 +++++++++++
 .../ddtSchemes/ddtScheme/ddtSchemeBase.H      | 75 +++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.C
 create mode 100644 src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.H

diff --git a/src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.C b/src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.C
new file mode 100644
index 00000000000..8dac32555ed
--- /dev/null
+++ b/src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.C
@@ -0,0 +1,45 @@
+/*---------------------------------------------------------------------------*\
+  =========                 |
+  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
+   \\    /   O peration     |
+    \\  /    A nd           | Copyright (C) 2018 OPenCFD Ltd.
+     \\/     M anipulation  |
+-------------------------------------------------------------------------------
+License
+    This file is part of OpenFOAM.
+
+    OpenFOAM is free software: you can redistribute it and/or modify it
+    under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+    for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
+
+\*---------------------------------------------------------------------------*/
+
+#include "ddtSchemeBase.H"
+#include "registerSwitch.H"
+#include "debug.H"
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+bool Foam::fv::ddtSchemeBase::experimentalDdtCorr
+(
+    Foam::debug::infoSwitch("experimentalDdtCorr", 0)
+);
+
+registerInfoSwitch
+(
+    "experimentalDdtCorr",
+    bool,
+    Foam::fv::ddtSchemeBase::experimentalDdtCorr
+);
+
+
+// ************************************************************************* //
diff --git a/src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.H b/src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.H
new file mode 100644
index 00000000000..510b358a992
--- /dev/null
+++ b/src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme/ddtSchemeBase.H
@@ -0,0 +1,75 @@
+/*---------------------------------------------------------------------------*\
+  =========                 |
+  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
+   \\    /   O peration     |
+    \\  /    A nd           | Copyright (C) 2018 OpenCFD Ltd.
+     \\/     M anipulation  |
+-------------------------------------------------------------------------------
+License
+    This file is part of OpenFOAM.
+
+    OpenFOAM is free software: you can redistribute it and/or modify it
+    under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+    for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
+
+Class
+    Foam::fv::ddtSchemeBase
+
+Description
+    Non-templated base class for ddt schemes.
+
+SourceFiles
+    ddtSchemeBase.C
+
+\*---------------------------------------------------------------------------*/
+
+#ifndef ddtSchemeBase_H
+#define ddtSchemeBase_H
+
+#include "Switch.H"
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+namespace Foam
+{
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+namespace fv
+{
+
+/*---------------------------------------------------------------------------*\
+                        Class ddtSchemeBase Declaration
+\*---------------------------------------------------------------------------*/
+
+class ddtSchemeBase
+{
+public:
+
+        //- Flag to use experimental ddtCorr from org version
+        //- Default is off for backwards compatibility
+        static bool experimentalDdtCorr;
+
+        ddtSchemeBase()
+        {}
+};
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+} // End namespace fv
+} // End namespace Foam
+
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+#endif
+
+// ************************************************************************* //
-- 
GitLab