@@ -911,7 +911,6 @@ void CConfig::SetPointersNull(void) {
911911 Velocity_FreeStream = nullptr ;
912912 Inc_Velocity_Init = nullptr ;
913913
914- RefOriginMoment = nullptr ;
915914 CFL_AdaptParam = nullptr ;
916915 CFL = nullptr ;
917916 HTP_Axis = nullptr ;
@@ -3856,10 +3855,6 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
38563855 }*/
38573856
38583857
3859- /* --- Initialize the RefOriginMoment Pointer ---*/
3860-
3861- RefOriginMoment = new su2double[3 ]();
3862-
38633858 /* --- In case the moment origin coordinates have not been declared in the
38643859 config file, set them equal to zero for safety. Also check to make sure
38653860 that for each marker, a value has been declared for the moment origin.
@@ -6216,28 +6211,28 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) {
62166211 case TIME_STEPPING:
62176212 cout << " Unsteady simulation using a time stepping strategy." << endl;
62186213 if (Unst_CFL != 0.0 ) {
6219- cout << " Time step computed by the code. Unsteady CFL number: " << Unst_CFL <<" ." << endl;
6220- if (Delta_UnstTime != 0.0 ) {
6221- cout << " Synchronization time provided by the user (s): " << Delta_UnstTime << " ." << endl;
6222- }
6223- }
6214+ cout << " Time step computed by the code. Unsteady CFL number: " << Unst_CFL <<" ." << endl;
6215+ if (Delta_UnstTime != 0.0 ) {
6216+ cout << " Synchronization time provided by the user (s): " << Delta_UnstTime << " ." << endl;
6217+ }
6218+ }
62246219 else cout << " Unsteady time step provided by the user (s): " << Delta_UnstTime << " ." << endl;
62256220 break ;
62266221 case DT_STEPPING_1ST: case DT_STEPPING_2ND:
62276222 if (TimeMarching == DT_STEPPING_1ST) cout << " Unsteady simulation, dual time stepping strategy (first order in time)." << endl;
62286223 if (TimeMarching == DT_STEPPING_2ND) cout << " Unsteady simulation, dual time stepping strategy (second order in time)." << endl;
62296224 if (Unst_CFL != 0.0 ) cout << " Time step computed by the code. Unsteady CFL number: " << Unst_CFL <<" ." << endl;
62306225 else cout << " Unsteady time step provided by the user (s): " << Delta_UnstTime << " ." << endl;
6231- cout << " Total number of internal Dual Time iterations: " << Unst_nIntIter <<" ." << endl;
6226+ cout << " Total number of internal Dual Time iterations: " << InnerIter <<" ." << endl;
62326227 break ;
62336228 }
62346229 }
62356230 else {
62366231 if (Time_Domain) {
6237- cout << " Dynamic structural analysis." << endl;
6238- cout << " Time step provided by the user for the dynamic analysis(s): " << Delta_DynTime << " ." << endl;
6239- } else {
6240- cout << " Static structural analysis." << endl;
6232+ cout << " Dynamic structural analysis." << endl;
6233+ cout << " Time step provided by the user for the dynamic analysis(s): " << Delta_DynTime << " ." << endl;
6234+ } else {
6235+ cout << " Static structural analysis." << endl;
62416236 }
62426237 }
62436238
@@ -7296,7 +7291,6 @@ CConfig::~CConfig(void) {
72967291
72977292 /* --- reference origin for moments ---*/
72987293
7299- delete [] RefOriginMoment;
73007294 delete [] RefOriginMoment_X;
73017295 delete [] RefOriginMoment_Y;
73027296 delete [] RefOriginMoment_Z;
@@ -7667,7 +7661,7 @@ CConfig::~CConfig(void) {
76677661
76687662}
76697663
7670- string CConfig::GetFilename (string filename, string ext, unsigned long Iter){
7664+ string CConfig::GetFilename (string filename, string ext, unsigned long Iter) const {
76717665
76727666 /* --- Remove any extension --- */
76737667
@@ -7755,33 +7749,33 @@ string CConfig::GetMultizone_HistoryFileName(string val_filename, int val_iZone,
77557749 return multizone_filename;
77567750}
77577751
7758- string CConfig::GetMultiInstance_FileName (string val_filename, int val_iInst, string ext) {
7752+ string CConfig::GetMultiInstance_FileName (string val_filename, int val_iInst, string ext) const {
77597753
7760- string multizone_filename = val_filename;
7761- char buffer[50 ];
7754+ string multizone_filename = val_filename;
7755+ char buffer[50 ];
77627756
7763- unsigned short lastindex = multizone_filename.find_last_of (" ." );
7764- multizone_filename = multizone_filename.substr (0 , lastindex);
7765- SPRINTF (buffer, " _%d" , SU2_TYPE::Int (val_iInst));
7766- multizone_filename.append (string (buffer));
7767- multizone_filename += ext;
7768- return multizone_filename;
7757+ unsigned short lastindex = multizone_filename.find_last_of (" ." );
7758+ multizone_filename = multizone_filename.substr (0 , lastindex);
7759+ SPRINTF (buffer, " _%d" , SU2_TYPE::Int (val_iInst));
7760+ multizone_filename.append (string (buffer));
7761+ multizone_filename += ext;
7762+ return multizone_filename;
77697763}
77707764
7771- string CConfig::GetMultiInstance_HistoryFileName (string val_filename, int val_iInst) {
7765+ string CConfig::GetMultiInstance_HistoryFileName (string val_filename, int val_iInst) const {
77727766
7773- string multizone_filename = val_filename;
7774- char buffer[50 ];
7767+ string multizone_filename = val_filename;
7768+ char buffer[50 ];
77757769
7776- unsigned short lastindex = multizone_filename.find_last_of (" ." );
7777- multizone_filename = multizone_filename.substr (0 , lastindex);
7778- SPRINTF (buffer, " _%d" , SU2_TYPE::Int (val_iInst));
7779- multizone_filename.append (string (buffer));
7770+ unsigned short lastindex = multizone_filename.find_last_of (" ." );
7771+ multizone_filename = multizone_filename.substr (0 , lastindex);
7772+ SPRINTF (buffer, " _%d" , SU2_TYPE::Int (val_iInst));
7773+ multizone_filename.append (string (buffer));
77807774
7781- return multizone_filename;
7775+ return multizone_filename;
77827776}
77837777
7784- string CConfig::GetObjFunc_Extension (string val_filename) {
7778+ string CConfig::GetObjFunc_Extension (string val_filename) const {
77857779
77867780 string AdjExt, Filename = val_filename;
77877781
@@ -8359,7 +8353,7 @@ void CConfig::SetInlet_Ptotal(su2double val_pressure, string val_marker) {
83598353 Inlet_Ptotal[iMarker_Inlet] = val_pressure;
83608354}
83618355
8362- su2double* CConfig::GetInlet_FlowDir (string val_marker) {
8356+ const su2double* CConfig::GetInlet_FlowDir (string val_marker) const {
83638357 unsigned short iMarker_Inlet;
83648358 for (iMarker_Inlet = 0 ; iMarker_Inlet < nMarker_Inlet; iMarker_Inlet++)
83658359 if (Marker_Inlet[iMarker_Inlet] == val_marker) break ;
@@ -9263,7 +9257,7 @@ void CConfig::SetProfilingCSV(void) {
92639257
92649258}
92659259
9266- void CConfig::GEMM_Tick (double *val_start_time) {
9260+ void CConfig::GEMM_Tick (double *val_start_time) const {
92679261
92689262#ifdef PROFILE
92699263
@@ -9277,7 +9271,7 @@ void CConfig::GEMM_Tick(double *val_start_time) {
92779271
92789272}
92799273
9280- void CConfig::GEMM_Tock (double val_start_time, int M, int N, int K) {
9274+ void CConfig::GEMM_Tock (double val_start_time, int M, int N, int K) const {
92819275
92829276#ifdef PROFILE
92839277
0 commit comments