Skip to content

Commit a2eaddb

Browse files
authored
fix ticket #6403 (#7262)
- use internal messaging instead of ModelicaMessage
1 parent 88338f3 commit a2eaddb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

OMCompiler/Compiler/Template/CodegenC.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ match baseClock
412412
else "unspecified"
413413
let interval = match intvl case "unspecified" then '1.0' else intvl
414414
let warning = match intvl case "unspecified" then
415-
'ModelicaMessage("Using default Clock(1.0)!");'
415+
'warningStreamPrint(LOG_STDOUT, 0, "Using default Clock(1.0)!");'
416416
<<
417417
<%preExp%>
418418
data->simulationInfo->clocksData[clockIndex].interval = <%interval%>;

OMCompiler/Compiler/Template/CodegenCpp.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9344,7 +9344,7 @@ case SIMCODE(modelInfo = MODELINFO(__), modelStructure = fmims) then
93449344
else "unspecified"
93459345
let interval = match intvl case "unspecified" then '1.0' else intvl
93469346
let warning = match intvl case "unspecified" then
9347-
'ModelicaMessage("Using default Clock(1.0)!");'
9347+
'LOGGER_WRITE("Using default Clock(1.0)!", LC_MODEL, LL_WARNING);'
93489348
let subClocks = (subPartitions |> subPartition =>
93499349
match subPartition
93509350
case SUBPARTITION(subClock=SUBCLOCK(factor=RATIONAL(nom=fnom, denom=fres), shift=RATIONAL(nom=snom, denom=sres))) then

OMCompiler/Compiler/Template/CodegenCppOld.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9523,7 +9523,7 @@ case SIMCODE(modelInfo = MODELINFO(__), modelStructure = fmims) then
95239523
else "unspecified"
95249524
let interval = match intvl case "unspecified" then '1.0' else intvl
95259525
let warning = match intvl case "unspecified" then
9526-
'ModelicaMessage("Using default Clock(1.0)!");'
9526+
'LOGGER_WRITE("Using default Clock(1.0)!", LC_MODEL, LL_WARNING);'
95279527
let subClocks = (subPartitions |> subPartition =>
95289528
match subPartition
95299529
case SUBPARTITION(subClock=SUBCLOCK(factor=RATIONAL(nom=fnom, denom=fres), shift=RATIONAL(nom=snom, denom=sres))) then

0 commit comments

Comments
 (0)