Skip to content

Commit e0fafa9

Browse files
authored
Merge pull request #1115 from su2code/cleaning_output_legacy
Cleaning parts of the legacy output
2 parents 78363e1 + 83b7a1a commit e0fafa9

9 files changed

Lines changed: 6089 additions & 20471 deletions

File tree

Common/include/CConfig.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,6 @@ class CConfig {
11091109
unsigned short Comm_Level; /*!< \brief Level of MPI communications to be performed. */
11101110
unsigned short Kind_Verification_Solution; /*!< \brief Verification solution for accuracy assessment. */
11111111

1112-
ofstream *ConvHistFile; /*!< \brief Store the pointer to each history file */
11131112
bool Time_Domain; /*!< \brief Determines if the multizone problem is solved in time-domain */
11141113
unsigned long nOuterIter, /*!< \brief Determines the number of outer iterations in the multizone problem */
11151114
nInnerIter, /*!< \brief Determines the number of inner iterations in each multizone block */
@@ -8996,16 +8995,6 @@ class CConfig {
89968995
type = top_optim_proj_type; param = top_optim_proj_param;
89978996
}
89988997

8999-
/*!
9000-
* \brief Retrieve the ofstream of the history file for the current zone.
9001-
*/
9002-
ofstream* GetHistFile(void) { return ConvHistFile; }
9003-
9004-
/*!
9005-
* \brief Set the ofstream of the history file for the current zone.
9006-
*/
9007-
void SetHistFile(ofstream *HistFile) { ConvHistFile = HistFile; }
9008-
90098998
/*!
90108999
* \brief Get the filenames of the individual config files
90119000
* \return File name of the config file for zone "index"

Common/src/CConfig.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,6 @@ void CConfig::SetPointersNull(void) {
10081008
nBlades = nullptr;
10091009
FreeStreamTurboNormal = nullptr;
10101010

1011-
ConvHistFile = nullptr;
1012-
10131011
top_optim_kernels = nullptr;
10141012
top_optim_kernel_params = nullptr;
10151013
top_optim_filter_radius = nullptr;
@@ -3064,10 +3062,7 @@ bool CConfig::SetRunTime_Parsing(char case_filename[MAX_STRING_SIZE]) {
30643062
}
30653063

30663064
void CConfig::SetHeader(unsigned short val_software) const{
3067-
/*--- WARNING: when compiling on Windows, ctime() is not available. Comment out
3068-
the two lines below that use the dt variable. ---*/
3069-
//time_t now = time(0);
3070-
//string dt = ctime(&now); dt[24] = '.';
3065+
30713066
if ((iZone == 0) && (rank == MASTER_NODE)){
30723067
cout << endl << "-------------------------------------------------------------------------" << endl;
30733068
cout << "| ___ _ _ ___ |" << endl;
@@ -3083,7 +3078,6 @@ void CConfig::SetHeader(unsigned short val_software) const{
30833078
}
30843079

30853080
cout << "| |" << endl;
3086-
//cout << "| Local date and time: " << dt << " |" << endl;
30873081
cout <<"-------------------------------------------------------------------------" << endl;
30883082
cout << "| SU2 Project Website: https://su2code.github.io |" << endl;
30893083
cout << "| |" << endl;

SU2_CFD/include/output/COutputLegacy.hpp

Lines changed: 5 additions & 716 deletions
Large diffs are not rendered by default.

SU2_CFD/include/output/output_structure_legacy.inl

Lines changed: 0 additions & 36 deletions
This file was deleted.

SU2_CFD/src/drivers/CDriver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,6 @@ CTurbomachineryDriver::CTurbomachineryDriver(char* confFile, unsigned short val_
32023202
ConvHist_file[iZone] = new ofstream[nInst[iZone]];
32033203
for (iInst = 0; iInst < nInst[iZone]; iInst++) {
32043204
output_legacy->SetConvHistory_Header(&ConvHist_file[iZone][iInst], config_container[iZone], iZone, iInst);
3205-
config_container[iZone]->SetHistFile(&ConvHist_file[iZone][INST_0]);
32063205
}
32073206
}
32083207
}
@@ -3448,7 +3447,6 @@ CHBDriver::CHBDriver(char* confFile,
34483447
ConvHist_file[iZone] = new ofstream[nInst[iZone]];
34493448
for (iInst = 0; iInst < nInst[iZone]; iInst++) {
34503449
output_legacy->SetConvHistory_Header(&ConvHist_file[iZone][iInst], config_container[iZone], iZone, iInst);
3451-
config_container[iZone]->SetHistFile(&ConvHist_file[iZone][iInst]);
34523450
}
34533451
}
34543452
}

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ void CFlowOutput::SetAnalyzeSurface(CSolver *solver, CGeometry *geometry, CConfi
448448
/*--- Compute flow uniformity parameters separately (always area for now). ---*/
449449

450450
Area = fabs(Surface_Area_Total[iMarker_Analyze]);
451-
451+
452452
/*--- The definitions for Distortion and Uniformity Parameters are taken as defined by Banko, Andrew J., et al. in section 3.2 of
453453
https://www.sciencedirect.com/science/article/pii/S0142727X16301412 ------*/
454-
454+
455455
if (Area != 0.0) {
456456
Surface_MomentumDistortion_Total[iMarker_Analyze] = Surface_StreamVelocity2_Total[iMarker_Analyze]/(Surface_NormalVelocity_Total[iMarker_Analyze]*Surface_NormalVelocity_Total[iMarker_Analyze]*Area) - 1.0;
457457
Surface_StreamVelocity2_Total[iMarker_Analyze] /= Area;
@@ -1091,11 +1091,6 @@ void CFlowOutput::WriteForcesBreakdown(CConfig *config, CGeometry *geometry, CSo
10911091
nullptr, *Surface_CFz_Mnt = nullptr, *Surface_CMx_Mnt = nullptr,
10921092
*Surface_CMy_Mnt = nullptr, *Surface_CMz_Mnt = nullptr;
10931093

1094-
/*--- WARNING: when compiling on Windows, ctime() is not available. Comment out
1095-
the two lines below that use the dt variable. ---*/
1096-
//time_t now = time(0);
1097-
//string dt = ctime(&now); dt[24] = '.';
1098-
10991094
/*--- Allocate memory for the coefficients being monitored ---*/
11001095

11011096
Surface_CL = new su2double[config->GetnMarker_Monitoring()];

0 commit comments

Comments
 (0)