Skip to content

Commit 35b6fcf

Browse files
authored
Merge branch 'develop' into fix_inc_rotatingframe
2 parents 2b61ec7 + e0fafa9 commit 35b6fcf

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
@@ -1110,7 +1110,6 @@ class CConfig {
11101110
unsigned short Comm_Level; /*!< \brief Level of MPI communications to be performed. */
11111111
unsigned short Kind_Verification_Solution; /*!< \brief Verification solution for accuracy assessment. */
11121112

1113-
ofstream *ConvHistFile; /*!< \brief Store the pointer to each history file */
11141113
bool Time_Domain; /*!< \brief Determines if the multizone problem is solved in time-domain */
11151114
unsigned long nOuterIter, /*!< \brief Determines the number of outer iterations in the multizone problem */
11161115
nInnerIter, /*!< \brief Determines the number of inner iterations in each multizone block */
@@ -9003,16 +9002,6 @@ class CConfig {
90039002
type = top_optim_proj_type; param = top_optim_proj_param;
90049003
}
90059004

9006-
/*!
9007-
* \brief Retrieve the ofstream of the history file for the current zone.
9008-
*/
9009-
ofstream* GetHistFile(void) { return ConvHistFile; }
9010-
9011-
/*!
9012-
* \brief Set the ofstream of the history file for the current zone.
9013-
*/
9014-
void SetHistFile(ofstream *HistFile) { ConvHistFile = HistFile; }
9015-
90169005
/*!
90179006
* \brief Get the filenames of the individual config files
90189007
* \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;
@@ -3066,10 +3064,7 @@ bool CConfig::SetRunTime_Parsing(char case_filename[MAX_STRING_SIZE]) {
30663064
}
30673065

30683066
void CConfig::SetHeader(unsigned short val_software) const{
3069-
/*--- WARNING: when compiling on Windows, ctime() is not available. Comment out
3070-
the two lines below that use the dt variable. ---*/
3071-
//time_t now = time(0);
3072-
//string dt = ctime(&now); dt[24] = '.';
3067+
30733068
if ((iZone == 0) && (rank == MASTER_NODE)){
30743069
cout << endl << "-------------------------------------------------------------------------" << endl;
30753070
cout << "| ___ _ _ ___ |" << endl;
@@ -3085,7 +3080,6 @@ void CConfig::SetHeader(unsigned short val_software) const{
30853080
}
30863081

30873082
cout << "| |" << endl;
3088-
//cout << "| Local date and time: " << dt << " |" << endl;
30893083
cout <<"-------------------------------------------------------------------------" << endl;
30903084
cout << "| SU2 Project Website: https://su2code.github.io |" << endl;
30913085
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)