@@ -244,7 +244,7 @@ CConfig::CConfig(char case_filename[MAX_STRING_SIZE], CConfig *config) {
244244 /* --- Update original config file ---*/
245245
246246 if (runtime_file) {
247- if (all_options. find (" TIME_ITER" ) == all_options. end ( ))
247+ if (OptionIsSet (" TIME_ITER" ))
248248 config->SetnTime_Iter (nTimeIter);
249249 }
250250}
@@ -1896,6 +1896,8 @@ void CConfig::SetConfig_Options() {
18961896 addUnsignedLongOption (" LINEAR_SOLVER_ITER" , Linear_Solver_Iter, 10 );
18971897 /* DESCRIPTION: Fill in level for the ILU preconditioner */
18981898 addUnsignedShortOption (" LINEAR_SOLVER_ILU_FILL_IN" , Linear_Solver_ILU_n, 0 );
1899+ /* DESCRIPTION: Use level scheduling for OMP parallelization of the ILU preconditioner */
1900+ addBoolOption (" LINEAR_SOLVER_ILU_LEVEL_SCHEDULING" , Linear_Solver_ILU_levels, false );
18991901 /* DESCRIPTION: Maximum number of iterations of the linear solver for the implicit formulation */
19001902 addUnsignedLongOption (" LINEAR_SOLVER_RESTART_FREQUENCY" , Linear_Solver_Restart_Frequency, 10 );
19011903 /* DESCRIPTION: Number of vectors used for deflated restarts */
@@ -4047,7 +4049,13 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
40474049
40484050 /* --- Set the number of external iterations to 1 for the steady state problem ---*/
40494051
4050- if (Kind_Solver == MAIN_SOLVER ::FEM_ELASTICITY ) nMGLevels = 0 ;
4052+ if (Kind_Solver == MAIN_SOLVER ::FEM_ELASTICITY ) {
4053+ nMGLevels = 0 ;
4054+ if (!OptionIsSet (" LINEAR_SOLVER_ILU_LEVEL_SCHEDULING" )) {
4055+ /* --- Different default behavior for this solver type. ---*/
4056+ Linear_Solver_ILU_levels = true ;
4057+ }
4058+ }
40514059
40524060 Radiation = (Kind_Radiation != RADIATION_MODEL ::NONE );
40534061
@@ -5746,11 +5754,11 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
57465754 /* --- Check that spark ignition has required parameters defined ---*/
57475755 if (flamelet_ParsedOptions.ignition_method == FLAMELET_INIT_TYPE ::SPARK ) {
57485756 /* --- Check if SPARK_INIT was explicitly set in config file ---*/
5749- if (all_options. find (" SPARK_INIT" ) != all_options. end ( )) {
5757+ if (! OptionIsSet (" SPARK_INIT" )) {
57505758 SU2_MPI::Error (" FLAME_INIT_METHOD= SPARK requires SPARK_INIT to be defined in the config file." , CURRENT_FUNCTION );
57515759 }
57525760 /* --- Check if SPARK_REACTION_RATES was explicitly set in config file ---*/
5753- if (all_options. find (" SPARK_REACTION_RATES" ) != all_options. end ( )) {
5761+ if (! OptionIsSet (" SPARK_REACTION_RATES" )) {
57545762 SU2_MPI::Error (" FLAME_INIT_METHOD= SPARK requires SPARK_REACTION_RATES to be defined in the config file." , CURRENT_FUNCTION );
57555763 }
57565764 if (flamelet_ParsedOptions.nspark < flamelet_ParsedOptions.n_scalars ) {
0 commit comments