3737 */
3838class CVertex : public CDualGrid {
3939protected:
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- su2double *VarRot; /* !< \brief Used for storing the rotation variation due to a surface modification. */
46- long PeriodicPoint[5 ]; /* !< \brief Store the periodic point of a boundary (iProcessor, iPoint) */
47- bool ActDisk_Perimeter; /* !< \brief Identify nodes at the perimeter of the actuator disk */
48- short Rotation_Type; /* !< \brief Type of rotation associated with the vertex (MPI and periodic) */
49- unsigned long Normal_Neighbor; /* !< \brief Index of the closest neighbor. */
50- unsigned long *Donor_Points; /* !< \brief indices of donor points for interpolation across zones */
51- unsigned long *Donor_Proc; /* !< \brief indices of donor processor for interpolation across zones in parallel */
52- su2double Basis_Function[3 ]; /* !< \brief Basis function values for interpolation across zones. */
53- su2double *Donor_Coeff; /* !< \brief Store a list of coefficients corresponding to the donor points. */
54- unsigned short nDonor_Points; /* !< \brief Number of points in Donor_Coeff. */
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. */
5550
5651public:
5752 /* !
@@ -61,11 +56,6 @@ class CVertex : public CDualGrid {
6156 */
6257 CVertex (unsigned long val_point, unsigned short val_nDim);
6358
64- /* !
65- * \brief Destructor of the class.
66- */
67- ~CVertex (void ) override ;
68-
6959 /* !
7060 * \brief Get the number of nodes of a vertex.
7161 * \return Number of nodes that set a vertex (1).
@@ -336,72 +326,4 @@ class CVertex : public CDualGrid {
336326 */
337327 inline unsigned long GetNormal_Neighbor (void ) const { return Normal_Neighbor; }
338328
339- /* !
340- * \brief Return the value of nDonor_Points
341- * \return nDonor - the number of donor points
342- */
343- inline unsigned short GetnDonorPoints (void ) const { return nDonor_Points;}
344-
345- /* !
346- * \brief Set the coefficient value of a donor point.
347- * \param[in] iDonor - Index of the donor point.
348- * \param[in] val - Value of the coefficent for point iDonor.
349- */
350- inline void SetDonorCoeff (unsigned short iDonor, su2double val) const { Donor_Coeff[iDonor] = val; }
351-
352- /* !
353- * \brief Get the coefficient value of a donor point.
354- * \param[in] iDonor - Index of the donor point.
355- * \return - Value of the coefficent for point iDonor.
356- */
357- inline su2double GetDonorCoeff (unsigned short iDonor) const { return Donor_Coeff[iDonor];}
358-
359- /* !
360- * \brief Set the donor point of a vertex for interpolation across zones.
361- * \param[in] val_donorpoint- donor face index (w/in donor elem).
362- */
363- inline void SetInterpDonorPoint (unsigned short val_donorindex, long val_donorpoint) {
364- Donor_Points[val_donorindex] = val_donorpoint;
365- }
366-
367- /* !
368- * \brief Get the value of the donor point of a vertex (for interpolation).
369- * \return Value of the donor point of a vertex.
370- */
371- inline long GetInterpDonorPoint (unsigned short val_donorindex) const { return Donor_Points[val_donorindex]; }
372-
373- /* !
374- * \brief Set the donor point of a vertex for interpolation across zones.
375- * \param[in] val_donorpoint- donor face index (w/in donor elem).
376- */
377- inline void SetInterpDonorProcessor (unsigned short val_donorindex, long val_donorpoint) {
378- Donor_Proc[val_donorindex] = val_donorpoint;
379- }
380-
381- /* !
382- * \brief Get the value of the donor point of a vertex (for interpolation).
383- * \return Value of the donor point of a vertex.
384- */
385- inline long GetInterpDonorProcessor (unsigned short val_donorindex) const { return Donor_Proc[val_donorindex]; }
386-
387- /* !
388- * \brief Allocate memory based on how many donor points need to be stored.
389- * \param[in] nDonor - the number of donor points
390- */
391- void Allocate_DonorInfo (unsigned short nDonor);
392-
393- /* !
394- * \brief Get the rotation variation
395- * \return - pointer to the vector defining the rotation
396- */
397- inline su2double *GetVarRot (void ) { return VarRot;}
398-
399- /* !
400- * \brief Set the rotation variation
401- * \return - pointer to the vector defining the rotation
402- */
403- inline void SetVarRot (const su2double* val) {
404- for (unsigned short iDim = 0 ; iDim < nDim; iDim++)
405- VarRot[iDim] = val[iDim];
406- }
407329};
0 commit comments