Skip to content

Commit

Permalink
Added documentation of saveTotalFile to old FE
Browse files Browse the repository at this point in the history
  • Loading branch information
casella authored and adeas31 committed Jul 11, 2019
1 parent 0ee3d89 commit 529511b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion OMCompiler/Compiler/FrontEnd/ModelicaBuiltin.mo
Expand Up @@ -2137,7 +2137,14 @@ external "builtin";
annotation(preferredView="text");
end saveModel;

function saveTotalModel
function saveTotalModel "Save the className model in a single file, together with all
the other classes that it depends upon, directly and indirectly.
This file can be later reloaded with the loadFile() API function,
which loads className and all the other needed classes into memory.
This is useful to allow third parties to run a certain model (e.g. for debugging)
without worrying about all the library dependencies.
Please note that SaveTotal file is not a valid Modelica .mo file according to the
specification, and cannot be loaded in OMEdit - it can only be loaded with loadFile()."
input String fileName;
input TypeName className;
input Boolean stripAnnotations = false;
Expand Down

0 comments on commit 529511b

Please sign in to comment.