@@ -2038,8 +2038,6 @@ void CConfig::SetConfig_Options() {
20382038 addBoolOption (" WRT_PERFORMANCE" , Wrt_Performance, false );
20392039 /* DESCRIPTION: Output the tape statistics (discrete adjoint) \ingroup Config*/
20402040 addBoolOption (" WRT_AD_STATISTICS" , Wrt_AD_Statistics, false );
2041- /* DESCRIPTION: Write the mesh quality metrics to the visualization files. \ingroup Config*/
2042- addBoolOption (" WRT_MESH_QUALITY" , Wrt_MeshQuality, false );
20432041 /* DESCRIPTION: Output a 1D slice of a 2D cartesian solution \ingroup Config*/
20442042 addBoolOption (" WRT_SLICE" , Wrt_Slice, false );
20452043 /* !\brief MARKER_ANALYZE_AVERAGE
@@ -2895,9 +2893,12 @@ void CConfig::SetConfig_Parsing(istream& config_buffer){
28952893 newString.append (" \n " );
28962894 if (!option_name.compare (" RELAXATION_FACTOR_ADJFLOW" ))
28972895 newString.append (" Option RELAXATION_FACTOR_ADJFLOW is now RELAXATION_FACTOR_ADJOINT, "
2898- " and it also applies to discrete adjoint problems\n ." );
2896+ " and it also applies to discrete adjoint problems.\n\n " );
2897+ if (!option_name.compare (" WRT_MESH_QUALITY" ))
2898+ newString.append (" WRT_MESH_QUALITY is deprecated. Use VOLUME_OUTPUT= (MESH_QUALITY, ...) instead.\n\n " );
28992899 errorString.append (newString);
29002900 err_count++;
2901+ line_count++;
29012902 continue ;
29022903 }
29032904
@@ -2910,6 +2911,7 @@ void CConfig::SetConfig_Parsing(istream& config_buffer){
29102911 newString.append (" \n " );
29112912 errorString.append (newString);
29122913 err_count++;
2914+ line_count++;
29132915 continue ;
29142916 }
29152917
@@ -3215,6 +3217,13 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
32153217 }
32163218 }
32173219
3220+ /* --- Check if MESH_QUALITY is requested in VOLUME_OUTPUT and set the config boolean accordingly. ---*/
3221+ Wrt_MeshQuality = false ;
3222+ for (unsigned short iField = 0 ; iField < nVolumeOutput; iField++) {
3223+ if (VolumeOutput[iField].find (" MESH_QUALITY" ) != string::npos) {
3224+ Wrt_MeshQuality = true ;
3225+ }
3226+ }
32183227
32193228 if (Kind_Solver == NAVIER_STOKES && Kind_Turb_Model != NONE){
32203229 SU2_MPI::Error (" KIND_TURB_MODEL must be NONE if SOLVER= NAVIER_STOKES" , CURRENT_FUNCTION);
0 commit comments