Skip to content

Commit

Permalink
Use runtime index of parent
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Sep 26, 2024
1 parent 464e680 commit 5017c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/lflang/generator/c/CGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ private void generateStartTimeStep(ReactorInstance instance) {
var indexString =
String.valueOf(enclaveInfo.numIsPresentFields)
+ " + ("
+ CUtil.runtimeIndex(instance)
+ CUtil.runtimeIndex(instance.getParent())
+ ") * "
+ totalChannelCount * port.getParent().getWidth()
+ " + count";
Expand Down

0 comments on commit 5017c83

Please sign in to comment.