Skip to content

Commit

Permalink
- changed log level for event iteration.
Browse files Browse the repository at this point in the history
 - added testcase for debugDumps cruntime.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18316 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Nov 26, 2013
1 parent 5b2754e commit 8b0c025
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/Template/CodegenC.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2776,7 +2776,7 @@ template functionCheckForDiscreteChanges(list<ComponentRef> discreteModelVars, S
<<
if(<%cref(var)%> != $P$PRE<%cref(var)%>)
{
DEBUG2(LOG_EVENTS, "discrete var changed: <%crefStr(var)%> from <%crefToPrintfArg(var)%> to <%crefToPrintfArg(var)%>", $P$PRE<%cref(var)%>, <%cref(var)%>);
INFO2(LOG_EVENTS_V, "discrete var changed: <%crefStr(var)%> from <%crefToPrintfArg(var)%> to <%crefToPrintfArg(var)%>", $P$PRE<%cref(var)%>, <%cref(var)%>);
needToIterate = 1;
}
>>
Expand All @@ -2787,10 +2787,10 @@ template functionCheckForDiscreteChanges(list<ComponentRef> discreteModelVars, S
{
int needToIterate = 0;
DEBUG(LOG_EVENTS, "check for discrete changes");
INDENT(LOG_EVENTS);
INFO(LOG_EVENTS_V, "check for discrete changes");
INDENT(LOG_EVENTS_V);
<%changediscreteVars%>
RELEASE(LOG_EVENTS);
RELEASE(LOG_EVENTS_V);
return needToIterate;
}
Expand Down

0 comments on commit 8b0c025

Please sign in to comment.