From 3ce18cb6e2ba8e43913cd6537be31e294e816869 Mon Sep 17 00:00:00 2001
From: Kutalmis Bercin <kutalmis.bercin@esi-group.com>
Date: Wed, 17 Mar 2021 10:03:05 +0000
Subject: [PATCH] COMP: missing include file for math functions (FULLDEBUG)

- additional include "Switch" in expressions
---
 src/OpenFOAM/expressions/exprResult/exprResult.C     | 3 ++-
 src/OpenFOAM/primitives/functions/Math/erfInv.C      | 1 +
 src/OpenFOAM/primitives/functions/Math/incGamma.C    | 1 +
 src/OpenFOAM/primitives/functions/Math/invIncGamma.C | 1 +
 4 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/OpenFOAM/expressions/exprResult/exprResult.C b/src/OpenFOAM/expressions/exprResult/exprResult.C
index afe1ae9b4cc..06654035227 100644
--- a/src/OpenFOAM/expressions/exprResult/exprResult.C
+++ b/src/OpenFOAM/expressions/exprResult/exprResult.C
@@ -6,7 +6,7 @@
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
     Copyright (C) 2012-2018 Bernhard Gschaider <bgschaid@hfd-research.com>
-    Copyright (C) 2019-2020 OpenCFD Ltd.
+    Copyright (C) 2019-2021 OpenCFD Ltd.
 -------------------------------------------------------------------------------
 License
     This file is part of OpenFOAM.
@@ -31,6 +31,7 @@ License
 #include "tensor.H"
 #include "symmTensor.H"
 #include "sphericalTensor.H"
+#include "Switch.H"
 #include "addToRunTimeSelectionTable.H"
 
 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
diff --git a/src/OpenFOAM/primitives/functions/Math/erfInv.C b/src/OpenFOAM/primitives/functions/Math/erfInv.C
index ccce80dbec7..1c5b01497c7 100644
--- a/src/OpenFOAM/primitives/functions/Math/erfInv.C
+++ b/src/OpenFOAM/primitives/functions/Math/erfInv.C
@@ -27,6 +27,7 @@ License
 
 #include "MathFunctions.H"
 #include "mathematicalConstants.H"
+#include "error.H"
 
 // * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * * //
 
diff --git a/src/OpenFOAM/primitives/functions/Math/incGamma.C b/src/OpenFOAM/primitives/functions/Math/incGamma.C
index fcee586dda0..0146bb14a1d 100644
--- a/src/OpenFOAM/primitives/functions/Math/incGamma.C
+++ b/src/OpenFOAM/primitives/functions/Math/incGamma.C
@@ -34,6 +34,7 @@ Description
 
 #include "MathFunctions.H"
 #include "mathematicalConstants.H"
+#include "error.H"
 #include <cmath>
 
 // * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * //
diff --git a/src/OpenFOAM/primitives/functions/Math/invIncGamma.C b/src/OpenFOAM/primitives/functions/Math/invIncGamma.C
index 3a38e3d7c3e..58897f62d24 100644
--- a/src/OpenFOAM/primitives/functions/Math/invIncGamma.C
+++ b/src/OpenFOAM/primitives/functions/Math/invIncGamma.C
@@ -34,6 +34,7 @@ Description
 
 #include "MathFunctions.H"
 #include "mathematicalConstants.H"
+#include "error.H"
 
 using namespace Foam::constant::mathematical;
 
-- 
GitLab