Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in inlet profile writer. #2267

Merged
merged 3 commits into from
Apr 18, 2024
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
Loading