Skip to content

Commit 51fbc78

Browse files
committed
cleanup CVertex
1 parent efa20ba commit 51fbc78

3 files changed

Lines changed: 12 additions & 34 deletions

File tree

Common/include/geometry/dual_grid/CVertex.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
*/
3838
class CVertex : public CDualGrid {
3939
protected:
40-
unsigned long Nodes[1]; /*!< \brief Vector to store the global nodes of an element. */
41-
su2double Normal[3]; /*!< \brief Normal coordinates of the element and its center of gravity. */
42-
su2double Aux_Var; /*!< \brief Auxiliar variable defined only on the surface. */
43-
su2double CartCoord[3]; /*!< \brief Vertex cartesians coordinates. */
44-
su2double VarCoord[3]; /*!< \brief Used for storing the coordinate variation due to a surface modification. */
45-
long PeriodicPoint[5]; /*!< \brief Store the periodic point of a boundary (iProcessor, iPoint) */
46-
bool ActDisk_Perimeter; /*!< \brief Identify nodes at the perimeter of the actuator disk */
47-
short Rotation_Type; /*!< \brief Type of rotation associated with the vertex (MPI and periodic) */
48-
unsigned long Normal_Neighbor; /*!< \brief Index of the closest neighbor. */
49-
su2double Basis_Function[3]; /*!< \brief Basis function values for interpolation across zones. */
40+
unsigned long Nodes[1]; /*!< \brief Vector to store the global nodes of an element. */
41+
su2double Normal[3] = {0.0}; /*!< \brief Normal coordinates of the element and its center of gravity. */
42+
su2double Aux_Var; /*!< \brief Auxiliar variable defined only on the surface. */
43+
su2double CartCoord[3] = {0.0}; /*!< \brief Vertex cartesians coordinates. */
44+
su2double VarCoord[3] = {0.0}; /*!< \brief Used for storing the coordinate variation due to a surface modification. */
45+
long PeriodicPoint[5] = {-1}; /*!< \brief Store the periodic point of a boundary (iProcessor, iPoint) */
46+
bool ActDisk_Perimeter = false; /*!< \brief Identify nodes at the perimeter of the actuator disk */
47+
short Rotation_Type; /*!< \brief Type of rotation associated with the vertex (MPI and periodic) */
48+
unsigned long Normal_Neighbor; /*!< \brief Index of the closest neighbor. */
49+
su2double Basis_Function[3] = {0.0}; /*!< \brief Basis function values for interpolation across zones. */
5050

5151
public:
5252
/*!

Common/include/interface_interpolation/CInterpolatorFactory.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
*/
2626
#pragma once
2727

28-
#include <memory>
29-
3028
class CConfig;
3129
class CGeometry;
3230
class CInterpolator;

Common/src/geometry/dual_grid/CVertex.cpp

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,9 @@
2727

2828
#include "../../../include/geometry/dual_grid/CVertex.hpp"
2929

30-
CVertex::CVertex(unsigned long val_point, unsigned short val_nDim) : CDualGrid(val_nDim) {
31-
32-
unsigned short iDim;
33-
34-
/*--- Set periodic points to zero ---*/
35-
36-
PeriodicPoint[0] = -1; PeriodicPoint[1] = -1; PeriodicPoint[2] = -1;
37-
PeriodicPoint[3] = -1; PeriodicPoint[4] = -1;
38-
39-
/*--- Identify the points at the perimeter of the actuatrod disk ---*/
40-
41-
ActDisk_Perimeter = false;
42-
43-
/*--- Initializate the structure ---*/
44-
30+
CVertex::CVertex(unsigned long val_point, unsigned short val_nDim) :
31+
CDualGrid(val_nDim) {
4532
Nodes[0] = val_point;
46-
47-
for (iDim = 0; iDim < 3; iDim ++) Normal[iDim] = 0.0;
48-
49-
/*--- Set to zero the variation of the coordinates ---*/
50-
51-
for (iDim = 0; iDim < 3; iDim ++) VarCoord[iDim] = 0.0;
52-
5333
}
5434

5535
void CVertex::SetNodes_Coord(su2double *val_coord_Edge_CG, su2double *val_coord_FaceElem_CG, su2double *val_coord_Elem_CG) {

0 commit comments

Comments
 (0)