Skip to content

Commit

Permalink
fclass instead of model when generating flat modelica
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1318 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Håkan Lundvall committed Oct 18, 2004
1 parent 7775cda commit 049a1fb
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions modeq/dae.rml
Expand Up @@ -362,21 +362,15 @@ end

relation dump_comp_element : Element => () =

rule RTOpts.modelica_output => false &
(* luc_pop: to work with mof2ff2 *)
(* Print.print_buf "fclass " & Print.print_buf n & Print.print_buf "\n" & *)
Print.print_buf "model " & Print.print_buf n & Print.print_buf "\n" &
(* end luc_pop *)
rule RTOpts.modelica_output => false &
Print.print_buf "fclass " & Print.print_buf n & Print.print_buf "\n" &
dump_elements(l) &
Print.print_buf "end " & Print.print_buf n & Print.print_buf ";\n"
-----------------------------------
dump_comp_element COMP(n,DAE(l))

rule RTOpts.modelica_output => true &
(* luc_pop: to work with mof2ff2 *)
(* Print.print_buf "fclass " & Print.print_buf n & Print.print_buf "\n" & *)
Print.print_buf "model " & Print.print_buf n & Print.print_buf "\n" &
(* end luc_pop *)
Print.print_buf "class " & Print.print_buf n & Print.print_buf "\n" &
dump_elements(l) &
Print.print_buf "end " & Print.print_buf n & Print.print_buf ";\n"
-----------------------------------
Expand All @@ -390,10 +384,7 @@ end
relation dump_comp_element_str : Element => string =

rule RTOpts.modelica_output => false &
(* luc_pop: to work with mof2ff2 *)
(* string_append("fclass ",n) => s1 & *)
string_append("model ",n) => s1 &
(* end luc_pop *)
string_append("fclass ",n) => s1 &
string_append(s1,"\n") => s2 &
dump_elements_str(l) => s3 &
string_append(s2,s3) => s4 &
Expand Down

0 comments on commit 049a1fb

Please sign in to comment.