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

Commit 6376982

Browse files
perostOpenModelica-Hudson
authored andcommitted
Disable unit checking in nfinst.
Belonging to [master]: - #2006
1 parent ff1e618 commit 6376982

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Compiler/FrontEnd/Inst.mo

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,7 @@ algorithm
329329
case (cache,ih,cdecls as _::_,path)
330330
equation
331331
(outCache,outEnv,outIH,outDAElist) = instantiateClass_dispatch(cache,ih,cdecls,path,doSCodeDep);
332-
if Flags.isSet(Flags.OLD_FE_UNITCHECK) then
333-
NFUnitCheck.checkUnits(outDAElist,FCore.getFunctionTree(outCache));
334-
end if;
332+
NFUnitCheck.checkUnits(outDAElist,FCore.getFunctionTree(outCache));
335333
then
336334
(outCache,outEnv,outIH,outDAElist);
337335

Compiler/NFFrontEnd/NFUnitCheck.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected
5252
NFHashTableStringToUnit.HashTable HtS2U;
5353
NFHashTableUnitToString.HashTable HtU2S;
5454
algorithm
55-
if not Flags.isSet(Flags.NF_UNITCHECK) then
55+
if not (Flags.isSet(Flags.NF_UNITCHECK) or Flags.isSet(Flags.OLD_FE_UNITCHECK)) then
5656
return;
5757
end if;
5858
try

Compiler/Util/Flags.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ constant DebugFlag PARTITION_INITIALIZATION = DEBUG_FLAG(166, "partitionInitiali
508508
Util.gettext("This flag controls if partitioning is applied to the initialization system."));
509509
constant DebugFlag EVAL_PARAM_DUMP = DEBUG_FLAG(167, "evalParameterDump", false,
510510
Util.gettext("Dumps information for evaluating parameters."));
511-
constant DebugFlag NF_UNITCHECK = DEBUG_FLAG(168, "frontEndUnitCheck", true,
511+
constant DebugFlag NF_UNITCHECK = DEBUG_FLAG(168, "frontEndUnitCheck", false,
512512
Util.gettext("Checks the consistency of units in equation."));
513513
constant DebugFlag DISABLE_COLORING = DEBUG_FLAG(169, "disableColoring", false,
514514
Util.gettext("Disables coloring algorithm while spasity detection."));

0 commit comments

Comments
 (0)