Skip to content
Snippets Groups Projects
Verified Commit a6d83074 authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(fix) Removed semicolons in .h

parent 13ed4609
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
......@@ -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,
......
......@@ -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;
......
......@@ -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();
......
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment