Skip to content

Commit

Permalink
figaro changes
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25326 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Olena Rogovchenko committed Mar 30, 2015
1 parent 39174d7 commit a639d11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Compiler/Script/Figaro.mo
Expand Up @@ -26,7 +26,7 @@ protected
String bdfFile = workingDir + "/FigaroObjects.fi" "Figaro code to the Figaro processor";
String figaroFile = workingDir + "/Figaro0.fi" "Figaro code from the Figaro processor";
String argumentFile = workingDir + "/figp_commands.xml" "instructions to the Figaro processor";
String resultFile = "result.xml" "status from the Figaro processor"; // File name cannot be changed.
String resultFile = System.pwd() + "result.xml" "status from the Figaro processor"; // File name cannot be changed.
SCode.Element program;
String figaro, database, xml, xml2;
list<String> sl;
Expand Down Expand Up @@ -65,7 +65,9 @@ algorithm
xml2 := System.readFile(resultFile);
sl := interpret(xml2);
if reportErrors(sl)
then fail();
then
/* Error.addMessage(Error.FIGARO_ERROR, {"For more information see" + System.pwd() + "/result.xml"}); */
fail();
end if;
end run;

Expand Down

0 comments on commit a639d11

Please sign in to comment.