@@ -52,7 +52,7 @@ class CPrimalGrid {
5252 * If this is a boundary element, store the index of the incident domain element. */
5353 unsigned long GlobalIndex_DomainElement;
5454 bool gi;
55- vector <long > Neighbor_Elements; /* !< \brief Vector to store the elements surronding an element. */
55+ unique_ptr <long [] > Neighbor_Elements; /* !< \brief Vector to store the elements surronding an element. */
5656 su2double Coord_CG[3 ] = {0.0 }; /* !< \brief Coordinates of the center-of-gravity of the element. */
5757
5858 su2double Volume; /* !< \brief Volume of the element. */
@@ -72,8 +72,9 @@ class CPrimalGrid {
7272 * \brief Constructor of the class.
7373 * \param[in] FEM - Whether this is a FEM element.
7474 * \param[in] nNodes - Number of nodes.
75+ * \param[in] nNeighbor_Elements - Number of neighbor elements.
7576 */
76- CPrimalGrid (bool FEM, unsigned short nNodes);
77+ CPrimalGrid (bool FEM, unsigned short nNodes, unsigned short nNeighbor_Elements );
7778
7879 /* !
7980 * \brief Destructor of the class.
@@ -463,7 +464,7 @@ template<typename Connectivity>
463464class CPrimalGridWithConnectivity : public CPrimalGrid {
464465public:
465466
466- CPrimalGridWithConnectivity (bool FEM) : CPrimalGrid(FEM, Connectivity::nNodes) {}
467+ CPrimalGridWithConnectivity (bool FEM) : CPrimalGrid(FEM, Connectivity::nNodes, Connectivity::nFaces ) {}
467468
468469 inline unsigned short GetnNodes () const final {
469470 return Connectivity::nNodes;
0 commit comments