Skip to content

Commit

Permalink
- Removed the old FMI import implementation.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19865 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Mar 31, 2014
1 parent eb9728e commit 5e6b3cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
14 changes: 2 additions & 12 deletions Compiler/FrontEnd/ModelicaBuiltin.mo
Expand Up @@ -2096,16 +2096,6 @@ external "builtin";
annotation(preferredView="text");
end reopenStandardStream;

function importFMUOld "Imports the Functional Mockup Unit
Example command:
importFMUOld(\"A.fmu\");"
input String filename "the fmu file name";
input String workdir := "<default>" "The output directory for imported FMU files. <default> will put the files to current working directory.";
output Boolean success "Returns true on success";
external "builtin";
annotation(preferredView="text");
end importFMUOld;

/* Under Development */
function importFMU "Imports the Functional Mockup Unit
Example command:
Expand Down Expand Up @@ -2401,8 +2391,8 @@ end visualize;
function plotParametric "Launches a plotParametric window using OMPlot. Returns true on success.
Example command sequences:
simulate(A);plotParametric2(x,y);
simulate(A);plotParametric2(x,y, externalWindow=true);
simulate(A);plotParametric(x,y);
simulate(A);plotParametric(x,y, externalWindow=true);
"
input VariableName xVariable;
input VariableName yVariable;
Expand Down
17 changes: 0 additions & 17 deletions Compiler/Script/CevalScript.mo
Expand Up @@ -1597,23 +1597,6 @@ algorithm
then
(cache,Values.BOOL(b),st);

case (cache,env,"importFMUOld",{Values.STRING(filename),Values.STRING(workdir)},st,_)
equation
// get OPENMODELICAHOME
omhome = Settings.getInstallationDirectoryPath();
// create the path till fmigenerator
str = omhome +& "/bin/fmigenerator";
workdir = Util.if_(System.directoryExists(workdir), workdir, System.pwd());
// create the list of arguments for fmigenerator
call = str +& " " +& "--fmufile=\"" +& filename +& "\" --outputdir=\"" +& workdir +& "\"";
0 = System.systemCall(call,"");
then
(cache,Values.BOOL(true),st);

case (cache,env,"importFMUOld",_,st,_)
then
(cache,Values.BOOL(false),st);

case (cache,env,"importFMU",{Values.STRING(filename),Values.STRING(workdir),Values.INTEGER(fmiLogLevel),Values.BOOL(b1), Values.BOOL(b2), Values.BOOL(inputConnectors), Values.BOOL(outputConnectors)},st,_)
equation
Error.clearMessages() "Clear messages";
Expand Down

0 comments on commit 5e6b3cd

Please sign in to comment.