Skip to content

Commit

Permalink
added a check for how many generated var and made some changes to to …
Browse files Browse the repository at this point in the history
…model genration of variables

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1392 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x02lucpo committed Jan 12, 2005
1 parent 07634fd commit 9d1e0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modeq/tornado.rml
Expand Up @@ -357,7 +357,7 @@ relation generate_links2:(DAELow.Var list,int,int,string list) => (string list,
rule int_add(param_index,1) => param_index' & int_string(param_index) => is &
Exp.cref_str(cr) => crs &
Util.string_split_at_char(crs,#".") => comp_name::_ &
TORNADOEXT.get_input_var_number(comp_name) => input_number &
TORNADOEXT.get_param_var_number(comp_name) => input_number &
int_string(input_number) => input_number_str &
Util.list_position(comp_name,comp_name_list) => index &
int_string(index) => index_str &
Expand Down
1 change: 1 addition & 0 deletions modeq/tornadoext.rml
Expand Up @@ -37,6 +37,7 @@ module TORNADOEXT:
relation dump_testing: (int) => ()
relation get_output_var_number: (string) => int
relation get_input_var_number: (string) => int
relation get_param_var_number: (string) => int



Expand Down

0 comments on commit 9d1e0b8

Please sign in to comment.