Skip to content

Commit

Permalink
remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfooted committed Nov 21, 2024
1 parent 8fbc825 commit 9307d7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion SU2_CFD/include/output/COutput.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ class COutput {
CParallelDataSorter* surfaceDataSorter; //!< Surface data sorter

vector<string> volumeFieldNames; //!< Vector containing the volume field names
unsigned short nVolumeFields; //!< Number of fields in the volume output

vector<string> requiredVolumeFieldNames; //!< Vector containing the minimum required volume field names.

Expand Down
15 changes: 6 additions & 9 deletions SU2_CFD/src/output/COutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1542,9 +1542,6 @@ void COutput::PreprocessVolumeOutput(CConfig *config){
nRequestedVolumeFields++;
}

nVolumeFields = 0;

string RequestedField;
string RequiredField;
std::vector<bool> FoundField(nRequestedVolumeFields, false);
vector<string> FieldsToRemove;
Expand All @@ -1562,7 +1559,7 @@ void COutput::PreprocessVolumeOutput(CConfig *config){

VolumeOutputField &Field = volumeOutput_Map.at(fieldReference);
/*--- Loop through all fields specified in the config ---*/
for (unsigned short iReqField = 0; iReqField < nRequiredVolumeFields; iReqField++) {
for (size_t iReqField = 0; iReqField < nRequiredVolumeFields; iReqField++) {

RequiredField = requiredVolumeFields[iReqField];
if (((RequiredField == Field.outputGroup) || (RequiredField == fieldReference)) && (Field.offset == -1)) {
Expand All @@ -1571,7 +1568,8 @@ void COutput::PreprocessVolumeOutput(CConfig *config){
}
}
}
nVolumeFields = 0;

unsigned short nVolumeFields = 0;

for (size_t iField_Output = 0; iField_Output < volumeOutput_List.size(); iField_Output++) {

Expand All @@ -1581,9 +1579,9 @@ void COutput::PreprocessVolumeOutput(CConfig *config){

/*--- Loop through all fields specified in the config ---*/

for (unsigned short iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++) {
for (size_t iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++) {

RequestedField = requestedVolumeFields[iReqField];
const string &RequestedField = requestedVolumeFields[iReqField];

if (((RequestedField == Field.outputGroup) || (RequestedField == fieldReference)) && (Field.offset == -1)) {

Expand Down Expand Up @@ -1625,8 +1623,7 @@ void COutput::PreprocessVolumeOutput(CConfig *config){

if (rank == MASTER_NODE){
cout <<"Volume output fields: ";
for (unsigned short iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++){
RequestedField = requestedVolumeFields[iReqField];
for (size_t iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++){
cout << requestedVolumeFields[iReqField];
if (iReqField != nRequestedVolumeFields - 1) cout << ", ";
}
Expand Down

0 comments on commit 9307d7d

Please sign in to comment.