Skip to content

Commit

Permalink
buffer bugfix for particle based data
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerner95 committed Nov 14, 2024
1 parent ba9ebb7 commit f241736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/datamanager/pdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,8 @@ impl DataManager for PData {
self.update_extra((timestep, timestep + self.buffersize), buffer_id);
}

&self.buffer[timestep - self.range_extra[buffer_id].0]
&self.extra_buffers[buffer_id][timestep - self.range_extra[buffer_id].0]

}

fn info(&self) -> Result<String, &'static str> {
Expand Down

0 comments on commit f241736

Please sign in to comment.