Skip to content

Commit

Permalink
SampleGenerator::SaveSnapshot- indexing bug hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Jul 9, 2024
1 parent 89553de commit 051e55e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sample_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ void SampleGenerator::SaveSnapshot(BlockVector *U_snapshots, std::vector<BasisTa
assert(addSample);

/* save the column index in each snapshot matrix, for port data. */
col_idxs[s] = snapshot_generators[index]->getNumSamples();
/* 0-based index */
col_idxs[s] = snapshot_generators[index]->getNumSamples() - 1;
}
}

Expand Down

0 comments on commit 051e55e

Please sign in to comment.