@@ -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.
@@ -6210,28 +6205,28 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) {
62106205 case TIME_STEPPING:
62116206 cout << " Unsteady simulation using a time stepping strategy." << endl;
62126207 if (Unst_CFL != 0.0 ) {
6213- cout << " Time step computed by the code. Unsteady CFL number: " << Unst_CFL <<" ." << endl;
6214- if (Delta_UnstTime != 0.0 ) {
6215- cout << " Synchronization time provided by the user (s): " << Delta_UnstTime << " ." << endl;
6216- }
6217- }
6208+ cout << " Time step computed by the code. Unsteady CFL number: " << Unst_CFL <<" ." << endl;
6209+ if (Delta_UnstTime != 0.0 ) {
6210+ cout << " Synchronization time provided by the user (s): " << Delta_UnstTime << " ." << endl;
6211+ }
6212+ }
62186213 else cout << " Unsteady time step provided by the user (s): " << Delta_UnstTime << " ." << endl;
62196214 break ;
62206215 case DT_STEPPING_1ST: case DT_STEPPING_2ND:
62216216 if (TimeMarching == DT_STEPPING_1ST) cout << " Unsteady simulation, dual time stepping strategy (first order in time)." << endl;
62226217 if (TimeMarching == DT_STEPPING_2ND) cout << " Unsteady simulation, dual time stepping strategy (second order in time)." << endl;
62236218 if (Unst_CFL != 0.0 ) cout << " Time step computed by the code. Unsteady CFL number: " << Unst_CFL <<" ." << endl;
62246219 else cout << " Unsteady time step provided by the user (s): " << Delta_UnstTime << " ." << endl;
6225- cout << " Total number of internal Dual Time iterations: " << Unst_nIntIter <<" ." << endl;
6220+ cout << " Total number of internal Dual Time iterations: " << InnerIter <<" ." << endl;
62266221 break ;
62276222 }
62286223 }
62296224 else {
62306225 if (Time_Domain) {
6231- cout << " Dynamic structural analysis." << endl;
6232- cout << " Time step provided by the user for the dynamic analysis(s): " << Delta_DynTime << " ." << endl;
6233- } else {
6234- cout << " Static structural analysis." << endl;
6226+ cout << " Dynamic structural analysis." << endl;
6227+ cout << " Time step provided by the user for the dynamic analysis(s): " << Delta_DynTime << " ." << endl;
6228+ } else {
6229+ cout << " Static structural analysis." << endl;
62356230 }
62366231 }
62376232
@@ -7290,7 +7285,6 @@ CConfig::~CConfig(void) {
72907285
72917286 /* --- reference origin for moments ---*/
72927287
7293- delete [] RefOriginMoment;
72947288 delete [] RefOriginMoment_X;
72957289 delete [] RefOriginMoment_Y;
72967290 delete [] RefOriginMoment_Z;
@@ -7661,7 +7655,7 @@ CConfig::~CConfig(void) {
76617655
76627656}
76637657
7664- string CConfig::GetFilename (string filename, string ext, unsigned long Iter){
7658+ string CConfig::GetFilename (string filename, string ext, unsigned long Iter) const {
76657659
76667660 /* --- Remove any extension --- */
76677661
@@ -7749,33 +7743,33 @@ string CConfig::GetMultizone_HistoryFileName(string val_filename, int val_iZone,
77497743 return multizone_filename;
77507744}
77517745
7752- string CConfig::GetMultiInstance_FileName (string val_filename, int val_iInst, string ext) {
7746+ string CConfig::GetMultiInstance_FileName (string val_filename, int val_iInst, string ext) const {
77537747
7754- string multizone_filename = val_filename;
7755- char buffer[50 ];
7748+ string multizone_filename = val_filename;
7749+ char buffer[50 ];
77567750
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;
7751+ unsigned short lastindex = multizone_filename.find_last_of (" ." );
7752+ multizone_filename = multizone_filename.substr (0 , lastindex);
7753+ SPRINTF (buffer, " _%d" , SU2_TYPE::Int (val_iInst));
7754+ multizone_filename.append (string (buffer));
7755+ multizone_filename += ext;
7756+ return multizone_filename;
77637757}
77647758
7765- string CConfig::GetMultiInstance_HistoryFileName (string val_filename, int val_iInst) {
7759+ string CConfig::GetMultiInstance_HistoryFileName (string val_filename, int val_iInst) const {
77667760
7767- string multizone_filename = val_filename;
7768- char buffer[50 ];
7761+ string multizone_filename = val_filename;
7762+ char buffer[50 ];
77697763
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));
7764+ unsigned short lastindex = multizone_filename.find_last_of (" ." );
7765+ multizone_filename = multizone_filename.substr (0 , lastindex);
7766+ SPRINTF (buffer, " _%d" , SU2_TYPE::Int (val_iInst));
7767+ multizone_filename.append (string (buffer));
77747768
7775- return multizone_filename;
7769+ return multizone_filename;
77767770}
77777771
7778- string CConfig::GetObjFunc_Extension (string val_filename) {
7772+ string CConfig::GetObjFunc_Extension (string val_filename) const {
77797773
77807774 string AdjExt, Filename = val_filename;
77817775
@@ -8353,7 +8347,7 @@ void CConfig::SetInlet_Ptotal(su2double val_pressure, string val_marker) {
83538347 Inlet_Ptotal[iMarker_Inlet] = val_pressure;
83548348}
83558349
8356- su2double* CConfig::GetInlet_FlowDir (string val_marker) {
8350+ const su2double* CConfig::GetInlet_FlowDir (string val_marker) const {
83578351 unsigned short iMarker_Inlet;
83588352 for (iMarker_Inlet = 0 ; iMarker_Inlet < nMarker_Inlet; iMarker_Inlet++)
83598353 if (Marker_Inlet[iMarker_Inlet] == val_marker) break ;
@@ -9257,7 +9251,7 @@ void CConfig::SetProfilingCSV(void) {
92579251
92589252}
92599253
9260- void CConfig::GEMM_Tick (double *val_start_time) {
9254+ void CConfig::GEMM_Tick (double *val_start_time) const {
92619255
92629256#ifdef PROFILE
92639257
@@ -9271,7 +9265,7 @@ void CConfig::GEMM_Tick(double *val_start_time) {
92719265
92729266}
92739267
9274- void CConfig::GEMM_Tock (double val_start_time, int M, int N, int K) {
9268+ void CConfig::GEMM_Tock (double val_start_time, int M, int N, int K) const {
92759269
92769270#ifdef PROFILE
92779271
0 commit comments