Skip to content

Commit 8c384d9

Browse files
committed
Force going through the sparse filling process even for trivial matrices in plan mode.
1 parent 25c924b commit 8c384d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/structures/vroom/input/input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ void Input::set_matrices(unsigned nb_thread, bool sparse_filling) {
10811081
assert(!define_durations || define_distances);
10821082

10831083
if (define_durations || define_distances) {
1084-
if (_locations.size() == 1) {
1084+
if (_locations.size() == 1 && !sparse_filling) {
10851085
durations_m->second = Matrix<UserDuration>(1);
10861086
distances_m->second = Matrix<UserDistance>(1);
10871087
} else {

0 commit comments

Comments
 (0)