Skip to content

Commit faf2b3b

Browse files
committed
map::at instead of []
1 parent 6d9e103 commit faf2b3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Common/src/interface_interpolation/CInterpolator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void CInterpolator::ReconstructBoundary(unsigned long val_zone, int val_marker)
232232
iPoint = geom->vertex[val_marker][iVertex]->GetNode();
233233
if (geom->nodes->GetDomain(iPoint)) {
234234
unsigned long iLocalVertex = iVertex_to_iLocalVertex[iVertex];
235-
Buffer_Send_nLinkedNodes[iLocalVertex] = neighbors[iPoint].size();
235+
Buffer_Send_nLinkedNodes[iLocalVertex] = neighbors.at(iPoint).size();
236236
Buffer_Send_StartLinkedNodes[iLocalVertex] = nLocalLinkedNodes;
237237
nLocalLinkedNodes += Buffer_Send_nLinkedNodes[iLocalVertex];
238238
}
@@ -243,7 +243,7 @@ void CInterpolator::ReconstructBoundary(unsigned long val_zone, int val_marker)
243243
for (iVertex = 0; iVertex < nVertex; iVertex++) {
244244
iPoint = geom->vertex[val_marker][iVertex]->GetNode();
245245
if (geom->nodes->GetDomain(iPoint)) {
246-
for (unsigned long jPoint_global : neighbors[iPoint]) {
246+
for (unsigned long jPoint_global : neighbors.at(iPoint)) {
247247
Buffer_Send_LinkedNodes[index] = jPoint_global;
248248
index++;
249249
}

0 commit comments

Comments
 (0)