Skip to content

Commit e53ba23

Browse files
committed
fix pyrms issue with type identification
in pyrms typeof(kin).name comes out as ReactionMechanismSimulator.Arrhenius instead of just Arrhenius this causes it to think it can't vectorize kinetics for these types this adjustment removes the ReactionMechanismSimulator part from the type
1 parent 2d98668 commit e53ba23

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)