Skip to content

Commit 9483062

Browse files
authored
Only dump clocked partitions if there are some (#14662)
1 parent 17fdbd1 commit 9483062

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

OMCompiler/Compiler/BackEnd/SynchronousFeatures.mo

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,13 @@ algorithm
165165
systs := listAppend(contSysts, clockedSysts);
166166
outDAE := BackendDAE.DAE(systs, shared);
167167

168-
if Flags.isSet(Flags.DUMP_SYNCHRONOUS) then
169-
print("synchronous features pre-phase: synchronousFeatures\n\n");
170-
BackendDump.dumpEqSystems(systs, "clock partitioning");
171-
BackendDump.dumpBasePartitions(shared.partitionsInfo.basePartitions, "Base clocks");
172-
BackendDump.dumpSubPartitions(shared.partitionsInfo.subPartitions, "Sub clocks");
168+
if not listEmpty(clockedSysts) then
169+
if Flags.isSet(Flags.DUMP_SYNCHRONOUS) then
170+
print("synchronous features pre-phase: synchronousFeatures\n\n");
171+
BackendDump.dumpEqSystems(systs, "clock partitioning");
172+
BackendDump.dumpBasePartitions(shared.partitionsInfo.basePartitions, "Base clocks");
173+
BackendDump.dumpSubPartitions(shared.partitionsInfo.subPartitions, "Sub clocks");
174+
end if;
173175
end if;
174176
end clockPartitioning1;
175177

0 commit comments

Comments
 (0)