@@ -198,21 +198,24 @@ def simulate(self):
198198 if reaction_system .const_spc_names is not None :
199199 reaction_system .get_const_spc_indices (self .rmg_model .reaction_model .core .species )
200200
201- reaction_system .simulate (
202- core_species = self .rmg_model .reaction_model .core .species ,
203- core_reactions = self .rmg_model .reaction_model .core .reactions ,
204- edge_species = self .rmg_model .reaction_model .edge .species ,
205- edge_reactions = self .rmg_model .reaction_model .edge .reactions ,
206- surface_species = [],
207- surface_reactions = [],
208- pdep_networks = pdep_networks ,
209- sensitivity = True if reaction_system .sensitive_species else False ,
210- sens_worksheet = sens_worksheet ,
211- model_settings = model_settings ,
212- simulator_settings = simulator_settings ,
213- conditions = {'T' : reaction_system .sens_conditions ['T' ], 'P' : reaction_system .sens_conditions ['P' ]},
214- prune = False ,
215- )
201+ try :
202+ reaction_system .simulate (
203+ core_species = self .rmg_model .reaction_model .core .species ,
204+ core_reactions = self .rmg_model .reaction_model .core .reactions ,
205+ edge_species = self .rmg_model .reaction_model .edge .species ,
206+ edge_reactions = self .rmg_model .reaction_model .edge .reactions ,
207+ surface_species = [],
208+ surface_reactions = [],
209+ pdep_networks = pdep_networks ,
210+ sensitivity = True if reaction_system .sensitive_species else False ,
211+ sens_worksheet = sens_worksheet ,
212+ model_settings = model_settings ,
213+ simulator_settings = simulator_settings ,
214+ conditions = {'T' : reaction_system .sens_conditions ['T' ], 'P' : reaction_system .sens_conditions ['P' ]},
215+ prune = False ,
216+ )
217+ except ZeroDivisionError as e :
218+ self .logger .warning (f'Cannot simulate reaction system, got:\n { e } ' )
216219
217220 if reaction_system .sensitive_species :
218221 plot_sensitivity (self .rmg_model .output_directory , index , reaction_system .sensitive_species )
0 commit comments