Skip to content

Implement circular buffer for History array #46

@cglosser

Description

@cglosser

The History class currently uses an array of length num_timesteps in its time dimension which will not scale for exceptionally long simulations. This should probably be reworked to use a circular buffer so that new timesteps overwrite old ones and the array does not grow inordinately. The circular buffer will have to be at least as long as the maximum number of timesteps required for a signal to traverse the system, however (r_max / (c * delta_t)).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions