From 049a1fb96d99d8e2565ee233c33d86cb6f4d68df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kan=20Lundvall?= Date: Mon, 18 Oct 2004 08:12:46 +0000 Subject: [PATCH] fclass instead of model when generating flat modelica git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1318 f25d12d1-65f4-0310-ae8a-bbce733d8d8e --- modeq/dae.rml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/modeq/dae.rml b/modeq/dae.rml index 7f6dfffe907..4c161d1aead 100644 --- a/modeq/dae.rml +++ b/modeq/dae.rml @@ -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" ----------------------------------- @@ -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 &