Skip to content

Commit 9307d7d

Browse files
committed
remove variable
1 parent 8fbc825 commit 9307d7d

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

SU2_CFD/include/output/COutput.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ class COutput {
245245
CParallelDataSorter* surfaceDataSorter; //!< Surface data sorter
246246

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

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

SU2_CFD/src/output/COutput.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,9 +1542,6 @@ void COutput::PreprocessVolumeOutput(CConfig *config){
15421542
nRequestedVolumeFields++;
15431543
}
15441544

1545-
nVolumeFields = 0;
1546-
1547-
string RequestedField;
15481545
string RequiredField;
15491546
std::vector<bool> FoundField(nRequestedVolumeFields, false);
15501547
vector<string> FieldsToRemove;
@@ -1562,7 +1559,7 @@ void COutput::PreprocessVolumeOutput(CConfig *config){
15621559

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

15671564
RequiredField = requiredVolumeFields[iReqField];
15681565
if (((RequiredField == Field.outputGroup) || (RequiredField == fieldReference)) && (Field.offset == -1)) {
@@ -1571,7 +1568,8 @@ void COutput::PreprocessVolumeOutput(CConfig *config){
15711568
}
15721569
}
15731570
}
1574-
nVolumeFields = 0;
1571+
1572+
unsigned short nVolumeFields = 0;
15751573

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

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

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

1584-
for (unsigned short iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++) {
1582+
for (size_t iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++) {
15851583

1586-
RequestedField = requestedVolumeFields[iReqField];
1584+
const string &RequestedField = requestedVolumeFields[iReqField];
15871585

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

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

16261624
if (rank == MASTER_NODE){
16271625
cout <<"Volume output fields: ";
1628-
for (unsigned short iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++){
1629-
RequestedField = requestedVolumeFields[iReqField];
1626+
for (size_t iReqField = 0; iReqField < nRequestedVolumeFields; iReqField++){
16301627
cout << requestedVolumeFields[iReqField];
16311628
if (iReqField != nRequestedVolumeFields - 1) cout << ", ";
16321629
}

0 commit comments

Comments
 (0)