@@ -723,7 +723,8 @@ def execute(self, **kwargs):
723
723
# Run a raw simulation to get updated reaction system threshold values
724
724
# Run with the same conditions as with pruning off
725
725
if not resurrected :
726
- reactionSystem .simulate (
726
+ try :
727
+ reactionSystem .simulate (
727
728
coreSpecies = self .reactionModel .core .species ,
728
729
coreReactions = self .reactionModel .core .reactions ,
729
730
edgeSpecies = [],
@@ -735,9 +736,16 @@ def execute(self, **kwargs):
735
736
simulatorSettings = simulatorSettings ,
736
737
conditions = self .rmg_memories [index ].get_cond ()
737
738
)
738
- self .updateReactionThresholdAndReactFlags (
739
+ except :
740
+ self .updateReactionThresholdAndReactFlags (
741
+ rxnSysUnimolecularThreshold = reactionSystem .unimolecularThreshold ,
742
+ rxnSysBimolecularThreshold = reactionSystem .bimolecularThreshold , skipUpdate = True )
743
+ logging .warn ('Reaction thresholds/flags for Reaction System {0} was not updated due to simulation failure' .format (index + 1 ))
744
+ else :
745
+ self .updateReactionThresholdAndReactFlags (
739
746
rxnSysUnimolecularThreshold = reactionSystem .unimolecularThreshold ,
740
747
rxnSysBimolecularThreshold = reactionSystem .bimolecularThreshold )
748
+
741
749
else :
742
750
self .updateReactionThresholdAndReactFlags (
743
751
rxnSysUnimolecularThreshold = reactionSystem .unimolecularThreshold ,
0 commit comments