Skip to content

Commit c021f89

Browse files
committed
cleanup and improve comments
1 parent 5fa720c commit c021f89

5 files changed

Lines changed: 225 additions & 339 deletions

File tree

Common/include/geometry/CGeometry.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class CGeometry {
8282
unsigned long nPoint{0}, /*!< \brief Number of points of the mesh. */
8383
nPointDomain{0}, /*!< \brief Number of real points of the mesh. */
8484
nPointGhost{0}, /*!< \brief Number of ghost points of the mesh. */
85-
nPointNode{0}, /*!< \brief Size of the node array allocated to hold CPoint objects. */
8685
Global_nPoint{0}, /*!< \brief Total number of nodes in a simulation across all processors (including halos). */
8786
Global_nPointDomain{0}, /*!< \brief Total number of nodes in a simulation across all processors (excluding halos). */
8887
nElem{0}, /*!< \brief Number of elements of the mesh. */

Common/include/geometry/CMultiGridGeometry.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,25 @@ class CMultiGridGeometry final : public CGeometry {
6161
* \param[in] config - Definition of the particular problem.
6262
* \return <code>TRUE</code> or <code>FALSE</code> depending if the control volume can be agglomerated.
6363
*/
64-
bool SetBoundAgglomeration(unsigned long CVPoint, short marker_seed, CGeometry *fine_grid, CConfig *config);
64+
bool SetBoundAgglomeration(unsigned long CVPoint, short marker_seed, const CGeometry *fine_grid, const CConfig *config) const;
6565

6666
/*!
6767
* \brief Determine if a can be agglomerated using geometrical criteria.
6868
* \param[in] iPoint - Seed point.
6969
* \param[in] fine_grid - Geometrical definition of the problem.
7070
* \param[in] config - Definition of the particular problem.
7171
*/
72-
bool GeometricalCheck(unsigned long iPoint, CGeometry *fine_grid, CConfig *config);
72+
bool GeometricalCheck(unsigned long iPoint, const CGeometry *fine_grid, const CConfig *config) const;
7373

7474
/*!
7575
* \brief Determine if a CVPoint van be agglomerated, if it have the same marker point as the seed.
76-
* \param[in] Suitable_Indirect_Neighbors - List of Indirect Neighbours that can be agglomerated.
76+
* \param[out] Suitable_Indirect_Neighbors - List of Indirect Neighbours that can be agglomerated.
7777
* \param[in] iPoint - Seed point.
7878
* \param[in] Index_CoarseCV - Index of agglomerated point.
7979
* \param[in] fine_grid - Geometrical definition of the problem.
8080
*/
81-
void SetSuitableNeighbors(vector<unsigned long> *Suitable_Indirect_Neighbors, unsigned long iPoint,
82-
unsigned long Index_CoarseCV, CGeometry *fine_grid);
81+
void SetSuitableNeighbors(vector<unsigned long>& Suitable_Indirect_Neighbors, unsigned long iPoint,
82+
unsigned long Index_CoarseCV, const CGeometry *fine_grid) const;
8383

8484
/*!
8585
* \brief Set boundary vertex.

Common/src/fem/geometry_structure_fem_part.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ void CPhysicalGeometry::Read_SU2_Format_Parallel_FEM(CConfig *config,
583583

584584
/*--- Allocate the memory for the coordinates to be stored on this rank. ---*/
585585
nPoint = nodeIDsElemLoc.size();
586-
nPointNode = nPoint;
587586
nodes = new CPoint(nPoint, nDim);
588587

589588
/*--- Open the grid file again and go to the position where
@@ -1146,7 +1145,6 @@ void CPhysicalGeometry::Read_CGNS_Format_Parallel_FEM(CConfig *config,
11461145

11471146
/*--- Allocate the memory for the coordinates to be stored on this rank. ---*/
11481147
nPoint = nodeIDsElemLoc.size();
1149-
nPointNode = nPoint;
11501148
nodes = new CPoint(nPoint, nDim);
11511149

11521150
/*--- Store the global ID's of the nodes in such a way that they can
@@ -1283,7 +1281,6 @@ void CPhysicalGeometry::Read_CGNS_Format_Parallel_FEM(CConfig *config,
12831281
/*--- Sequential mode. Create the data for the points. The global
12841282
number of points equals the local number of points. ---*/
12851283
nPoint = Global_nPoint;
1286-
nPointNode = nPoint;
12871284
nodes = new CPoint(nPoint, nDim);
12881285

12891286
for(unsigned long i=0; i<nPoint; ++i) {

0 commit comments

Comments
 (0)