Skip to content

Commit 25942ba

Browse files
8 --> N/10
1 parent c03cba4 commit 25942ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocs2_oc/src/multiple_shooting/Helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ ProblemMetrics toProblemMetrics(const std::vector<AnnotatedTime>& time, std::vec
129129
// resize
130130
ProblemMetrics problemMetrics;
131131
problemMetrics.intermediates.reserve(N);
132-
problemMetrics.preJumps.reserve(8); // the size is just a guess
132+
problemMetrics.preJumps.reserve(N / 10); // the size is just a guess
133133
problemMetrics.final = std::move(metrics.back());
134134

135135
for (int i = 0; i < N; ++i) {

0 commit comments

Comments
 (0)