@@ -2014,34 +2014,34 @@ void COutputLegacy::SetConvHistory_Body(ofstream *ConvHist_file,
20142014
20152015 if ((!DualTime_Iteration) && (output_files)) {
20162016 if (!turbo) {
2017- config[val_iZone]-> GetHistFile () [0 ] << begin << direct_coeff;
2018- if (buffet) config[val_iZone]-> GetHistFile () [0 ] << buffet_coeff;
2019- if (thermal) config[val_iZone]-> GetHistFile () [0 ] << heat_coeff;
2020- if (equiv_area) config[val_iZone]-> GetHistFile () [0 ] << equivalent_area_coeff;
2021- if (engine || actuator_disk) config[val_iZone]-> GetHistFile () [0 ] << engine_coeff;
2017+ ConvHist_file [0 ] << begin << direct_coeff;
2018+ if (buffet) ConvHist_file [0 ] << buffet_coeff;
2019+ if (thermal) ConvHist_file [0 ] << heat_coeff;
2020+ if (equiv_area) ConvHist_file [0 ] << equivalent_area_coeff;
2021+ if (engine || actuator_disk) ConvHist_file [0 ] << engine_coeff;
20222022 if (inv_design) {
2023- config[val_iZone]-> GetHistFile () [0 ] << Cp_inverse_design;
2024- if (thermal) config[val_iZone]-> GetHistFile () [0 ] << Heat_inverse_design;
2023+ ConvHist_file [0 ] << Cp_inverse_design;
2024+ if (thermal) ConvHist_file [0 ] << Heat_inverse_design;
20252025 }
2026- if (rotating_frame && !turbo) config[val_iZone]-> GetHistFile () [0 ] << rotating_frame_coeff;
2027- config[val_iZone]-> GetHistFile () [0 ] << flow_resid;
2028- if (weakly_coupled_heat) config[val_iZone]-> GetHistFile () [0 ] << heat_resid;
2029- if (radiation) config[val_iZone]-> GetHistFile () [0 ] << rad_resid;
2026+ if (rotating_frame && !turbo) ConvHist_file [0 ] << rotating_frame_coeff;
2027+ ConvHist_file [0 ] << flow_resid;
2028+ if (weakly_coupled_heat) ConvHist_file [0 ] << heat_resid;
2029+ if (radiation) ConvHist_file [0 ] << rad_resid;
20302030 }
20312031 else {
2032- config[val_iZone]-> GetHistFile () [0 ] << begin << turbo_coeff << flow_resid;
2032+ ConvHist_file [0 ] << begin << turbo_coeff << flow_resid;
20332033 }
20342034
2035- if (aeroelastic) config[val_iZone]-> GetHistFile () [0 ] << aeroelastic_coeff;
2036- if (output_per_surface) config[val_iZone]-> GetHistFile () [0 ] << monitoring_coeff;
2037- if (output_surface) config[val_iZone]-> GetHistFile () [0 ] << surface_outputs;
2035+ if (aeroelastic) ConvHist_file [0 ] << aeroelastic_coeff;
2036+ if (output_per_surface) ConvHist_file [0 ] << monitoring_coeff;
2037+ if (output_surface) ConvHist_file [0 ] << surface_outputs;
20382038 if (direct_diff != NO_DERIVATIVE) {
2039- config[val_iZone]-> GetHistFile () [0 ] << d_direct_coeff;
2040- if (output_surface) config[val_iZone]-> GetHistFile () [0 ] << d_surface_outputs;
2039+ ConvHist_file [0 ] << d_direct_coeff;
2040+ if (output_surface) ConvHist_file [0 ] << d_surface_outputs;
20412041 }
2042- if (output_comboObj) config[val_iZone]-> GetHistFile () [0 ] << combo_obj;
2043- config[val_iZone]-> GetHistFile () [0 ] << end;
2044- config[val_iZone]-> GetHistFile () [0 ].flush ();
2042+ if (output_comboObj) ConvHist_file [0 ] << combo_obj;
2043+ ConvHist_file [0 ] << end;
2044+ ConvHist_file [0 ].flush ();
20452045 }
20462046
20472047 /* --- Write screen output ---*/
@@ -2111,33 +2111,33 @@ void COutputLegacy::SetConvHistory_Body(ofstream *ConvHist_file,
21112111 if ((!DualTime_Iteration) && (output_files)) {
21122112
21132113 if (!turbo) {
2114- config[val_iZone]-> GetHistFile () [0 ] << begin << direct_coeff;
2115- if (buffet) config[val_iZone]-> GetHistFile () [0 ] << buffet_coeff;
2116- if (thermal) config[val_iZone]-> GetHistFile () [0 ] << heat_coeff;
2117- if (equiv_area) config[val_iZone]-> GetHistFile () [0 ] << equivalent_area_coeff;
2118- if (engine || actuator_disk) config[val_iZone]-> GetHistFile () [0 ] << engine_coeff;
2114+ ConvHist_file [0 ] << begin << direct_coeff;
2115+ if (buffet) ConvHist_file [0 ] << buffet_coeff;
2116+ if (thermal) ConvHist_file [0 ] << heat_coeff;
2117+ if (equiv_area) ConvHist_file [0 ] << equivalent_area_coeff;
2118+ if (engine || actuator_disk) ConvHist_file [0 ] << engine_coeff;
21192119 if (inv_design) {
2120- config[val_iZone]-> GetHistFile () [0 ] << Cp_inverse_design;
2121- if (thermal) config[val_iZone]-> GetHistFile () [0 ] << Heat_inverse_design;
2120+ ConvHist_file [0 ] << Cp_inverse_design;
2121+ if (thermal) ConvHist_file [0 ] << Heat_inverse_design;
21222122 }
2123- if (rotating_frame && !turbo) config[val_iZone]-> GetHistFile () [0 ] << rotating_frame_coeff;
2124- config[val_iZone]-> GetHistFile () [0 ] << flow_resid << turb_resid;
2125- if (weakly_coupled_heat) config[val_iZone]-> GetHistFile () [0 ] << heat_resid;
2123+ if (rotating_frame && !turbo) ConvHist_file [0 ] << rotating_frame_coeff;
2124+ ConvHist_file [0 ] << flow_resid << turb_resid;
2125+ if (weakly_coupled_heat) ConvHist_file [0 ] << heat_resid;
21262126 }
21272127 else {
2128- config[val_iZone]-> GetHistFile () [0 ] << begin << turbo_coeff << flow_resid << turb_resid;
2128+ ConvHist_file [0 ] << begin << turbo_coeff << flow_resid << turb_resid;
21292129 }
21302130
2131- if (aeroelastic) config[val_iZone]-> GetHistFile () [0 ] << aeroelastic_coeff;
2132- if (output_per_surface) config[val_iZone]-> GetHistFile () [0 ] << monitoring_coeff;
2133- if (output_surface) config[val_iZone]-> GetHistFile () [0 ] << surface_outputs;
2131+ if (aeroelastic) ConvHist_file [0 ] << aeroelastic_coeff;
2132+ if (output_per_surface) ConvHist_file [0 ] << monitoring_coeff;
2133+ if (output_surface) ConvHist_file [0 ] << surface_outputs;
21342134 if (direct_diff != NO_DERIVATIVE) {
2135- config[val_iZone]-> GetHistFile () [0 ] << d_direct_coeff;
2136- if (output_surface) config[val_iZone]-> GetHistFile () [0 ] << d_surface_outputs;
2135+ ConvHist_file [0 ] << d_direct_coeff;
2136+ if (output_surface) ConvHist_file [0 ] << d_surface_outputs;
21372137 }
2138- if (output_comboObj) config[val_iZone]-> GetHistFile () [0 ] << combo_obj;
2139- config[val_iZone]-> GetHistFile () [0 ] << end;
2140- config[val_iZone]-> GetHistFile () [0 ].flush ();
2138+ if (output_comboObj) ConvHist_file [0 ] << combo_obj;
2139+ ConvHist_file [0 ] << end;
2140+ ConvHist_file [0 ].flush ();
21412141 }
21422142
21432143 /* --- Write screen output ---*/
@@ -2209,16 +2209,16 @@ void COutputLegacy::SetConvHistory_Body(ofstream *ConvHist_file,
22092209 case HEAT_EQUATION:
22102210
22112211 if (!DualTime_Iteration) {
2212- config[val_iZone]-> GetHistFile () [0 ] << begin << direct_coeff << heat_resid << end;
2213- config[val_iZone]-> GetHistFile () [0 ].flush ();
2212+ ConvHist_file [0 ] << begin << direct_coeff << heat_resid << end;
2213+ ConvHist_file [0 ].flush ();
22142214 }
22152215 break ;
22162216
22172217 case FEM_ELASTICITY:
22182218
22192219 if (!DualTime_Iteration) {
2220- config[val_iZone]-> GetHistFile () [0 ] << begin << fem_coeff << fem_resid << end_fem;
2221- config[val_iZone]-> GetHistFile () [0 ].flush ();
2220+ ConvHist_file [0 ] << begin << fem_coeff << fem_resid << end_fem;
2221+ ConvHist_file [0 ].flush ();
22222222
22232223 cout.precision (6 );
22242224 cout.setf (ios::fixed, ios::floatfield);
@@ -2279,8 +2279,8 @@ void COutputLegacy::SetConvHistory_Body(ofstream *ConvHist_file,
22792279 case DISC_ADJ_INC_EULER: case DISC_ADJ_INC_NAVIER_STOKES:
22802280
22812281 if (!DualTime_Iteration) {
2282- config[val_iZone]-> GetHistFile () [0 ] << begin << adjoint_coeff << adj_flow_resid << end;
2283- config[val_iZone]-> GetHistFile () [0 ].flush ();
2282+ ConvHist_file [0 ] << begin << adjoint_coeff << adj_flow_resid << end;
2283+ ConvHist_file [0 ].flush ();
22842284 }
22852285 if ((val_iZone == 0 && val_iInst == 0 )|| fluid_structure){
22862286 if (DualTime_Iteration || !Unsteady){
@@ -2333,11 +2333,11 @@ void COutputLegacy::SetConvHistory_Body(ofstream *ConvHist_file,
23332333 case ADJ_RANS : case DISC_ADJ_RANS: case DISC_ADJ_INC_RANS:
23342334
23352335 if (!DualTime_Iteration) {
2336- config[val_iZone]-> GetHistFile () [0 ] << begin << adjoint_coeff << adj_flow_resid;
2336+ ConvHist_file [0 ] << begin << adjoint_coeff << adj_flow_resid;
23372337 if (!frozen_visc)
2338- config[val_iZone]-> GetHistFile () [0 ] << adj_turb_resid;
2339- config[val_iZone]-> GetHistFile () [0 ] << end;
2340- config[val_iZone]-> GetHistFile () [0 ].flush ();
2338+ ConvHist_file [0 ] << adj_turb_resid;
2339+ ConvHist_file [0 ] << end;
2340+ ConvHist_file [0 ].flush ();
23412341 }
23422342 if ((val_iZone == 0 && val_iInst == 0 )|| fluid_structure){
23432343 if (DualTime_Iteration || !Unsteady){
@@ -2492,11 +2492,6 @@ void COutputLegacy::SpecialOutput_ForcesBreakdown(CSolver *****solver, CGeometry
24922492 nullptr , *Surface_CFz_Mnt = nullptr , *Surface_CMx_Mnt = nullptr ,
24932493 *Surface_CMy_Mnt = nullptr , *Surface_CMz_Mnt = nullptr ;
24942494
2495- /* --- WARNING: when compiling on Windows, ctime() is not available. Comment out
2496- the two lines below that use the dt variable. ---*/
2497- // time_t now = time(0);
2498- // string dt = ctime(&now); dt[24] = '.';
2499-
25002495 /* --- Allocate memory for the coefficients being monitored ---*/
25012496
25022497 Surface_CL = new su2double[config[ZONE_0]->GetnMarker_Monitoring ()];
@@ -2782,11 +2777,10 @@ void COutputLegacy::SpecialOutput_ForcesBreakdown(CSolver *****solver, CGeometry
27822777
27832778 Breakdown_file << " \n " <<" -------------------------------------------------------------------------" << " \n " ;
27842779 Breakdown_file <<" | ___ _ _ ___ |" << " \n " ;
2785- Breakdown_file <<" | / __| | | |_ ) Release 6.1.0 \" Falcon \" |" << " \n " ;
2780+ Breakdown_file <<" | / __| | | |_ ) Release 7.0.7 \" Blackbird \" |" << " \n " ;
27862781 Breakdown_file <<" | \\ __ \\ |_| |/ / |" << " \n " ;
27872782 Breakdown_file <<" | |___/\\ ___//___| Suite (Computational Fluid Dynamics Code) |" << " \n " ;
27882783 Breakdown_file << " | |" << " \n " ;
2789- // Breakdown_file << "| Local date and time: " << dt << " |" << "\n";
27902784 Breakdown_file <<" -------------------------------------------------------------------------" << " \n " ;
27912785 Breakdown_file << " | The current SU2 release has been coordinated by the |" << " \n " ;
27922786 Breakdown_file << " | SU2 International Developers Society <www.su2devsociety.org> |" << " \n " ;
@@ -2802,7 +2796,7 @@ void COutputLegacy::SpecialOutput_ForcesBreakdown(CSolver *****solver, CGeometry
28022796 Breakdown_file << " | - Prof. Edwin van der Weide's group at the University of Twente. |" << " \n " ;
28032797 Breakdown_file << " | - Lab. of New Concepts in Aeronautics at Tech. Inst. of Aeronautics. |" << " \n " ;
28042798 Breakdown_file <<" -------------------------------------------------------------------------" << " \n " ;
2805- Breakdown_file << " | Copyright 2012-2018 , Francisco D. Palacios, Thomas D. Economon, |" << " \n " ;
2799+ Breakdown_file << " | Copyright 2012-2020 , Francisco D. Palacios, Thomas D. Economon, |" << " \n " ;
28062800 Breakdown_file << " | Tim Albring, and the SU2 contributors. |" << " \n " ;
28072801 Breakdown_file << " | |" << " \n " ;
28082802 Breakdown_file << " | SU2 is free software; you can redistribute it and/or |" << " \n " ;
0 commit comments