Fix $n expansion for rules to use rule component ptype
This commit is contained in:
parent
c6ea4f83c2
commit
2e48921bb1
@ -191,7 +191,7 @@ class Propane
|
||||
end
|
||||
code = code.gsub(/\$(\d+)/) do |match|
|
||||
index = $1.to_i
|
||||
"statevalues[$-1-n_states+#{index}].pvalue.v_#{rule.ptypename}"
|
||||
"statevalues[$-1-n_states+#{index}].pvalue.v_#{rule.components[index - 1].ptypename}"
|
||||
end
|
||||
else
|
||||
code = code.gsub(/\$\$/) do |match|
|
||||
|
Loading…
x
Reference in New Issue
Block a user