Skip to content

Commit

Permalink
compareSimulationResults is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Apr 9, 2017
1 parent adf56d3 commit 65dd5bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -2034,6 +2034,7 @@ algorithm

case (cache,_,"compareSimulationResults",{Values.STRING(filename),Values.STRING(filename_1),Values.STRING(filename2),Values.REAL(x1),Values.REAL(x2),Values.ARRAY(valueLst=cvars)},st,_)
equation
Error.addMessage(Error.DEPRECATED_API_CALL, {"compareSimulationResults", "diffSimulationResults"});
filename = Util.absoluteOrRelative(filename);
filename_1 = Util.testsuiteFriendlyPath(filename_1);
filename_1 = Util.absoluteOrRelative(filename_1);
Expand Down
2 changes: 2 additions & 0 deletions Compiler/Util/Error.mo
Expand Up @@ -1008,6 +1008,8 @@ public constant Message TEMPLATE_ERROR_FUNC = MESSAGE(7014, TRANSLATION(), ERROR
Util.gettext("Template error: A template call failed (a call with %s parameters: %s). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates preserve pure 'match'/non-failing semantics)."));
public constant Message FMU_EXPORT_NOT_SUPPORTED_CPP = MESSAGE(7015, SCRIPTING(), WARNING(),
Util.gettext("Export of FMU type %s is not supported with Cpp target. FMU will be for Model Exchange (me)."));
public constant Message DEPRECATED_API_CALL = MESSAGE(7016, SCRIPTING(), WARNING(),
Util.gettext("'%1' is deprecated. It is recommended to use '%2' instead."));

protected import ErrorExt;

Expand Down

0 comments on commit 65dd5bc

Please sign in to comment.