From a6d83074ab8be9f89112db9f862d1ff2cc9d3f14 Mon Sep 17 00:00:00 2001
From: Paul Dechamps <paul.dechamps@uliege.be>
Date: Mon, 27 Jan 2025 15:02:47 +0100
Subject: [PATCH] (fix) Removed semicolons in .h

---
 blast/src/blBoundaryLayer.cpp |  6 +++++-
 blast/src/blBoundaryLayer.h   | 28 ++++++++++++++--------------
 blast/src/blCoupledAdjoint.h  |  2 +-
 blast/src/blDriver.h          |  6 +++---
 blast/src/blFluxes.h          |  4 ++--
 blast/src/blSolver.h          |  8 ++++----
 6 files changed, 29 insertions(+), 25 deletions(-)

diff --git a/blast/src/blBoundaryLayer.cpp b/blast/src/blBoundaryLayer.cpp
index 006c643..1494c90 100644
--- a/blast/src/blBoundaryLayer.cpp
+++ b/blast/src/blBoundaryLayer.cpp
@@ -20,7 +20,11 @@ BoundaryLayer::BoundaryLayer(double _xtrF, std::string _name)
     transitionNode = 0;
 }
 
-BoundaryLayer::~BoundaryLayer() { delete closSolver; }
+BoundaryLayer::~BoundaryLayer()
+{
+    delete closSolver;
+    std::cout << "~BoundaryLayer()\n";
+}
 
 void BoundaryLayer::setMesh(const std::vector<double> &_x, const std::vector<double> &_y,
                             const std::vector<double> &_z, const double &_chord,
diff --git a/blast/src/blBoundaryLayer.h b/blast/src/blBoundaryLayer.h
index 185af55..3dfda8b 100644
--- a/blast/src/blBoundaryLayer.h
+++ b/blast/src/blBoundaryLayer.h
@@ -84,11 +84,11 @@ public:
     void reset();
 
     // Getters
-    std::string getName() const { return name; };
-    size_t getnNodes() const { return nNodes; };
-    size_t getnElms() const { return nElms; };
+    std::string getName() const { return name; }
+    size_t getnNodes() const { return nNodes; }
+    size_t getnElms() const { return nElms; }
 
-    double getMaxMach() const { return *std::max_element(Me.begin(), Me.end()); };
+    double getMaxMach() const { return *std::max_element(Me.begin(), Me.end()); }
 
     // Setters
     void setMesh(const std::vector<double> &_x, const std::vector<double> &y,
@@ -101,40 +101,40 @@ public:
         if (_Me.size() != nNodes)
             throw std::runtime_error("Mach number vector is not consistent.");
         Me = _Me;
-    };
+    }
     void setVt(std::vector<double> const &_vt)
     {
         if (_vt.size() != nNodes)
             throw std::runtime_error("Velocity vector is not consistent.");
         vt = _vt;
-    };
+    }
     void setRhoe(std::vector<double> const &_rhoe)
     {
         if (_rhoe.size() != nNodes)
             throw std::runtime_error("Density vector is not consistent.");
         rhoe = _rhoe;
-    };
+    }
     void setxxExt(std::vector<double> const &_xxExt)
     {
         if (_xxExt.size() != nNodes)
             throw std::runtime_error("External mesh vector is not consistent.");
         xxExt = _xxExt;
-    };
+    }
     void setDeltaStarExt(std::vector<double> const &_deltaStarExt)
     {
         if (_deltaStarExt.size() != nNodes)
             throw std::runtime_error(
                 "Displacement thickness vector is not consistent.");
         deltaStarExt = _deltaStarExt;
-    };
+    }
     void setVtExt(std::vector<double> const &_vtExt)
     {
         if (_vtExt.size() != nNodes)
             throw std::runtime_error("Velocity vector is not consistent.");
         vtExt = _vtExt;
-    };
-    void setxtrF(double const _xtrF) { xtrF = _xtrF; };
-    void setnCrit(double const _nCrit) { nCrit = _nCrit; };
+    }
+    void setxtrF(double const _xtrF) { xtrF = _xtrF; }
+    void setnCrit(double const _nCrit) { nCrit = _nCrit; }
 
     // Boundary conditions.
     void setStagnationBC(double Re);
@@ -142,8 +142,8 @@ public:
                    std::vector<double> &lowerConditions);
 
     // Getters.
-    size_t getnVar() const { return nVar; };
-    double getnCrit() const { return nCrit; };
+    size_t getnVar() const { return nVar; }
+    double getnCrit() const { return nCrit; }
 
     // Others
     void printSolution(size_t iPoint) const;
diff --git a/blast/src/blCoupledAdjoint.h b/blast/src/blCoupledAdjoint.h
index 220a0f4..aea838d 100644
--- a/blast/src/blCoupledAdjoint.h
+++ b/blast/src/blCoupledAdjoint.h
@@ -222,7 +222,7 @@ private:
 public:
     CoupledAdjoint(std::shared_ptr<dart::Adjoint> iAdjoint,
                    std::shared_ptr<blast::Driver> vSolver);
-    virtual ~CoupledAdjoint() { std::cout << "~blast::CoupledAdjoint()\n"; };
+    virtual ~CoupledAdjoint() { std::cout << "~blast::CoupledAdjoint()\n"; }
 
     void run();
     void reset();
diff --git a/blast/src/blDriver.h b/blast/src/blDriver.h
index b02f037..fc1be8b 100644
--- a/blast/src/blDriver.h
+++ b/blast/src/blDriver.h
@@ -49,16 +49,16 @@ public:
 
     // Getters.
     double getAverageTransition(size_t const iRegion) const;
-    double getRe() const { return Re; };
+    double getRe() const { return Re; }
     std::vector<std::vector<double>> getSolution(size_t iSec);
 
     // Setters.
-    void setVerbose(unsigned int _verbose) { verbose = _verbose; };
+    void setVerbose(unsigned int _verbose) { verbose = _verbose; }
 
     void addSection(size_t iSec, BoundaryLayer *&bl)
     {
         sections[iSec].push_back(bl);
-    };
+    }
 
 private:
     void checkWaves(size_t iPoint, BoundaryLayer *bl);
diff --git a/blast/src/blFluxes.h b/blast/src/blFluxes.h
index 452251e..d10aab1 100644
--- a/blast/src/blFluxes.h
+++ b/blast/src/blFluxes.h
@@ -19,8 +19,8 @@ public:
     double Re; ///< Freestream Reynolds number.
 
 public:
-    Fluxes(double _Re) : Re(_Re){};
-    ~Fluxes(){};
+    Fluxes(double _Re) : Re(_Re) {}
+    ~Fluxes() {}
     Eigen::VectorXd computeResiduals(size_t iPoint, BoundaryLayer *bl);
     Eigen::MatrixXd computeJacobian(size_t iPoint, BoundaryLayer *bl,
                                     Eigen::VectorXd const &sysRes, double eps);
diff --git a/blast/src/blSolver.h b/blast/src/blSolver.h
index 1572f35..489062d 100644
--- a/blast/src/blSolver.h
+++ b/blast/src/blSolver.h
@@ -33,9 +33,9 @@ public:
     int integration(size_t iPoint, BoundaryLayer *bl);
 
     // Getters.
-    double getCFL0() const { return CFL0; };
-    unsigned int getmaxIt() const { return maxIt; };
-    unsigned int getitFrozenJac() const { return itFrozenJac0; };
+    double getCFL0() const { return CFL0; }
+    unsigned int getmaxIt() const { return maxIt; }
+    unsigned int getitFrozenJac() const { return itFrozenJac0; }
 
     // Setters.
     void setCFL0(double _CFL0);
@@ -43,7 +43,7 @@ public:
     void setitFrozenJac(unsigned int _itFrozenJac)
     {
         itFrozenJac0 = _itFrozenJac;
-    };
+    }
 
 private:
     double setTimeStep(double CFL, double dx, double invVel) const;
-- 
GitLab