Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 32ad2f5

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
fix checkAllModelsRecursive reporting and add a flag
- add the nfAPI flag so we don't get conflicts on changes to this file - report the number of failing models for checkAllModelsRecursive Belonging to [master]: - #2637
1 parent 1eeffa0 commit 32ad2f5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Compiler/Script/CevalScriptBackend.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5815,7 +5815,7 @@ algorithm
58155815
elapsedTime = t2 - t1;
58165816
s = realString(elapsedTime);
58175817
(smsg, f) = failOrSuccess(str);
5818-
failed = if f then failed + 1 else 0;
5818+
failed = if f then failed + 1 else failed;
58195819
print (s + " seconds -> " + smsg + "\n\t");
58205820
print (System.stringReplace(str, "\n", "\n\t"));
58215821
print ("\n");

Compiler/Util/Flags.mo

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ constant DebugFlag NF_EVAL_CONST_ARG_FUNCS = DEBUG_FLAG(180, "nfEvalConstArgFunc
536536
Util.gettext("Evaluate all functions with constant arguments in the new frontend."));
537537
constant DebugFlag NF_EXPAND_OPERATIONS = DEBUG_FLAG(181, "nfExpandOperations", true,
538538
Util.gettext("Expand all unary/binary operations to scalar expressions in the new frontend."));
539+
constant DebugFlag NF_API = DEBUG_FLAG(182, "nfAPI", false,
540+
Util.gettext("Enables experimental new instantiation use in the OMC API."));
539541

540542
// This is a list of all debug flags, to keep track of which flags are used. A
541543
// flag can not be used unless it's in this list, and the list is checked at
@@ -723,7 +725,8 @@ constant list<DebugFlag> allDebugFlags = {
723725
DEBUG_DAEMODE,
724726
NF_SCALARIZE,
725727
NF_EVAL_CONST_ARG_FUNCS,
726-
NF_EXPAND_OPERATIONS
728+
NF_EXPAND_OPERATIONS,
729+
NF_API
727730
};
728731

729732
public

0 commit comments

Comments
 (0)