@@ -2043,8 +2043,6 @@ void CConfig::SetConfig_Options() {
20432043 addBoolOption (" WRT_PERFORMANCE" , Wrt_Performance, false );
20442044 /* DESCRIPTION: Output the tape statistics (discrete adjoint) \ingroup Config*/
20452045 addBoolOption (" WRT_AD_STATISTICS" , Wrt_AD_Statistics, false );
2046- /* DESCRIPTION: Write the mesh quality metrics to the visualization files. \ingroup Config*/
2047- addBoolOption (" WRT_MESH_QUALITY" , Wrt_MeshQuality, false );
20482046 /* DESCRIPTION: Output a 1D slice of a 2D cartesian solution \ingroup Config*/
20492047 addBoolOption (" WRT_SLICE" , Wrt_Slice, false );
20502048 /* !\brief MARKER_ANALYZE_AVERAGE
@@ -2900,9 +2898,12 @@ void CConfig::SetConfig_Parsing(istream& config_buffer){
29002898 newString.append (" \n " );
29012899 if (!option_name.compare (" RELAXATION_FACTOR_ADJFLOW" ))
29022900 newString.append (" Option RELAXATION_FACTOR_ADJFLOW is now RELAXATION_FACTOR_ADJOINT, "
2903- " and it also applies to discrete adjoint problems\n ." );
2901+ " and it also applies to discrete adjoint problems.\n\n " );
2902+ if (!option_name.compare (" WRT_MESH_QUALITY" ))
2903+ newString.append (" WRT_MESH_QUALITY is deprecated. Use VOLUME_OUTPUT= (MESH_QUALITY, ...) instead.\n\n " );
29042904 errorString.append (newString);
29052905 err_count++;
2906+ line_count++;
29062907 continue ;
29072908 }
29082909
@@ -2915,6 +2916,7 @@ void CConfig::SetConfig_Parsing(istream& config_buffer){
29152916 newString.append (" \n " );
29162917 errorString.append (newString);
29172918 err_count++;
2919+ line_count++;
29182920 continue ;
29192921 }
29202922
@@ -3220,6 +3222,13 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
32203222 }
32213223 }
32223224
3225+ /* --- Check if MESH_QUALITY is requested in VOLUME_OUTPUT and set the config boolean accordingly. ---*/
3226+ Wrt_MeshQuality = false ;
3227+ for (unsigned short iField = 0 ; iField < nVolumeOutput; iField++) {
3228+ if (VolumeOutput[iField].find (" MESH_QUALITY" ) != string::npos) {
3229+ Wrt_MeshQuality = true ;
3230+ }
3231+ }
32233232
32243233 if (Kind_Solver == NAVIER_STOKES && Kind_Turb_Model != NONE){
32253234 SU2_MPI::Error (" KIND_TURB_MODEL must be NONE if SOLVER= NAVIER_STOKES" , CURRENT_FUNCTION);
0 commit comments