File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929#include "../../include/solvers/CEulerSolver.hpp"
3030#include "../../include/variables/CNSVariable.hpp"
31+ #include "../../../Common/include/toolboxes/geometry_toolbox.hpp"
3132#include "../../../Common/include/toolboxes/printing_toolbox.hpp"
3233#include "../../include/gradients/computeGradientsGreenGauss.hpp"
3334#include "../../include/gradients/computeGradientsLeastSquares.hpp"
@@ -6843,8 +6844,7 @@ void CEulerSolver::BC_Sym_Plane(CGeometry *geometry,
68436844
68446845 /*--- Adjustment to v.n due to grid movement. ---*/
68456846 if (dynamic_grid) {
6846- for (iDim = 0; iDim < nDim; iDim++)
6847- ProjVelocity_i -= geometry->nodes->GetGridVel(iPoint)[iDim]*UnitNormal[iDim];
6847+ ProjVelocity_i -= GeometryToolbox::DotProduct(nDim, geometry->nodes->GetGridVel(iPoint), UnitNormal);
68486848 }
68496849
68506850 for (iDim = 0; iDim < nDim; iDim++)
You can’t perform that action at this time.
0 commit comments