Skip to content

Commit 9ee0698

Browse files
committed
WellboreModel: Fix index error in update of state.groups
1 parent ec51af8 commit 9ee0698

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/wellbore/WellboreModel.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,9 @@
753753
end
754754

755755
for i = nw + (1:ng)
756-
state.groups(i).type = type{i};
757-
state.groups(i).val = target(i);
758-
state.groups(i).T = targetTemp(i);
756+
state.groups(i-nw).type = type{i};
757+
state.groups(i-nw).val = target(i);
758+
state.groups(i-nw).T = targetTemp(i);
759759
end
760760

761761
end

0 commit comments

Comments
 (0)