File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7476,7 +7476,7 @@ void CPhysicalGeometry::FindUniqueNode_PeriodicBound(CConfig *config) {
74767476 su2double min_norm = 0.0 ;
74777477
74787478 vector<su2double> Buffer_Send_RefNode (nDim, 1e300 ),
7479- Buffer_Recv_RefNode (size*nDim);
7479+ Buffer_Recv_RefNode (static_cast < size_t >( size) *nDim);
74807480
74817481 /* -------------------------------------------------------------------------------------------*/
74827482 /* --- Step 1: Find a unique reference node on each rank and communicate them such that ---*/
@@ -7525,7 +7525,7 @@ void CPhysicalGeometry::FindUniqueNode_PeriodicBound(CConfig *config) {
75257525 for (int iRank = 0 ; iRank < size; iRank++) {
75267526
75277527 /* --- Get the norm of the current Point. ---*/
7528- auto norm = GeometryToolbox::SquaredNorm (nDim, &Buffer_Recv_RefNode[iRank*nDim]);
7528+ auto norm = GeometryToolbox::SquaredNorm (nDim, &Buffer_Recv_RefNode[static_cast < size_t >( iRank) *nDim]);
75297529
75307530 /* --- Check if new unique reference node is found. ---*/
75317531 if (norm < min_norm || iRank == 0 ) {
You can’t perform that action at this time.
0 commit comments