@@ -5157,8 +5157,7 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
51575157 Mesh_Box_Size[1 ] = 33 ;
51585158 Mesh_Box_Size[2 ] = 33 ;
51595159 } else if (nMesh_Box_Size != 3 ) {
5160- SU2_MPI::Error (string (" MESH_BOX_SIZE specified without 3 values.\n " ),
5161- CURRENT_FUNCTION);
5160+ SU2_MPI::Error (" MESH_BOX_SIZE specified without 3 values.\n " , CURRENT_FUNCTION);
51625161 }
51635162
51645163 /* Force the lowest memory preconditioner when direct solvers are used. */
@@ -5175,8 +5174,8 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
51755174 if (DiscreteAdjoint) {
51765175#if !defined CODI_REVERSE_TYPE
51775176 if (Kind_SU2 == SU2_COMPONENT::SU2_CFD) {
5178- SU2_MPI::Error (string ( " SU2_CFD: Config option MATH_PROBLEM= DISCRETE_ADJOINT requires AD support!\n " ) +
5179- string ( " Please use SU2_CFD_AD (configuration/compilation is done using the preconfigure.py script)." ) ,
5177+ SU2_MPI::Error (" SU2_CFD: Config option MATH_PROBLEM= DISCRETE_ADJOINT requires AD support!\n "
5178+ " Please use SU2_CFD_AD (configuration/compilation is done using the preconfigure.py script)." ,
51805179 CURRENT_FUNCTION);
51815180 }
51825181#endif
@@ -5190,8 +5189,8 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
51905189 Restart_Flow = false ;
51915190
51925191 if (Unst_AdjointIter- long (nTimeIter) < 0 ){
5193- SU2_MPI::Error (string ( " Invalid iteration number requested for unsteady adjoint.\n " ) +
5194- string ( " Make sure EXT_ITER is larger or equal than UNST_ADJOINT_ITER." ) ,
5192+ SU2_MPI::Error (" Invalid iteration number requested for unsteady adjoint.\n "
5193+ " Make sure EXT_ITER is larger or equal than UNST_ADJOINT_ITER." ,
51955194 CURRENT_FUNCTION);
51965195 }
51975196
@@ -5250,8 +5249,7 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
52505249 turbulence model. */
52515250
52525251 if (MUSCL_AdjTurb) {
5253- SU2_MPI::Error (string (" MUSCL_ADJTURB= YES not currently supported.\n " ) +
5254- string (" Please select MUSCL_ADJTURB= NO (first-order)." ),
5252+ SU2_MPI::Error (" MUSCL_ADJTURB= YES not currently supported.\n Please select MUSCL_ADJTURB= NO (first-order)." ,
52555253 CURRENT_FUNCTION);
52565254 }
52575255
@@ -5272,9 +5270,11 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
52725270 we also want to avoid recomputation. */
52735271
52745272 ReconstructionGradientRequired = false ;
5275- Kind_Gradient_Method_Recon = Kind_Gradient_Method;
5273+ Kind_Gradient_Method_Recon = Kind_Gradient_Method;
52765274 }
52775275
5276+ } else {
5277+ ReconstructionGradientRequired = false ;
52785278 }
52795279
52805280 if (ReconstructionGradientRequired && GetFluidProblem () && Kind_ConvNumScheme_Flow == SPACE_CENTERED)
0 commit comments