Skip to content

Commit 94b834a

Browse files
authored
Merge pull request #90 from ReactionMechanismGenerator/kineticstypeid
Fix pyrms issue with kinetics vectorization
2 parents 2d98668 + e53ba23 commit 94b834a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Phase.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ function getveckinetics(rxns)
150150
otherrxninds = Array{Int64,1}()
151151
for (i,tp) in enumerate(tps)
152152
if typeof(tp)<:Tuple
153-
typ = tp[1]
153+
typ = split(tp[1],".")[end] #this split needs done because in pyrms the type names come as ReactionMechanismSimulator.Arrhenius instead of Arrhenius in RMS proper
154154
else
155-
typ = tp
155+
typ = split(tp,".")[end]
156156
end
157157
rinds = [findfirst(isequal(rxn),rxns) for rxn in rxnlists[i]]
158158
fcn = Symbol(typ * "vec")

0 commit comments

Comments
 (0)