Skip to content

Commit

Permalink
Additional warning for mutlizone, if DV_MARKERs not found.
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
  • Loading branch information
TobiKattmann and pcarruscag committed Feb 2, 2022
1 parent f7f4c6d commit 75746ac
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Common/src/CConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5733,11 +5733,16 @@ void CConfig::SetMarkers(SU2_COMPONENT val_software) {
break;
}
}
// In case of multiple zones, the markers might appear only in zonal config and not in the Master.
// A loop over all zones would need to be included which is not straight forward as this can only be
// checked once all zonal configs are read.
if(!found && (nZone==1)) {
SU2_MPI::Error("DV_MARKER contains marker names that do not exist in the lists of BCs in the config file.", CURRENT_FUNCTION);

if(!found) {
if (nZone==1)
SU2_MPI::Error("DV_MARKER contains marker names that do not exist in the lists of BCs in the config file.", CURRENT_FUNCTION);
// In case of multiple zones, the markers might appear only in zonal config and not in the Master.
// A loop over all zones would need to be included which is not straight forward as this can only be
// checked once all zonal configs are read.
else
cout << "Warning: DV_MARKER contains marker names that do not exist in the lists of BCs of the master config file.\n" <<
"Make sure the marker names exist in the zonal config files" << endl;
}
}

Expand Down

0 comments on commit 75746ac

Please sign in to comment.