Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions SU2_CFD/src/CMarkerProfileReaderFVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ void CMarkerProfileReaderFVM::MergeProfileMarkers() {
by the master and sorted by marker tag in one large n-dim. array. ---*/

su2double *Coords_Local; jPoint = 0;

/*--- Index to the string in columNames and columnValues ---*/
unsigned short columnIndex=0;

for (iMarker = 0; iMarker < config->GetnMarker_All(); iMarker++) {
if (config->GetMarker_All_KindBC(iMarker) == markerType) {

Expand Down Expand Up @@ -338,12 +342,12 @@ void CMarkerProfileReaderFVM::MergeProfileMarkers() {
/*--- Store the column names ---*/

SPRINTF(&Buffer_Send_Name[jPoint*MAX_STRING_SIZE], "%s",
columnNames[iMarker].c_str());
columnNames[columnIndex].c_str());

/*--- Store the column values ---*/

SPRINTF(&Buffer_Send_Value[jPoint*MAX_STRING_SIZE], "%s",
columnValues[iMarker].c_str());
columnValues[columnIndex].c_str());

/*--- Increment jPoint as the counter. We need this because iPoint
may include halo nodes that we skip over during this loop. ---*/
Expand All @@ -352,6 +356,7 @@ void CMarkerProfileReaderFVM::MergeProfileMarkers() {

}
}
columnIndex++;
}
}

Expand Down