Added simple buffers to store the results. The performance is not the best, as new memory is allocated at each iteration step. But considering the size of the simulations we are running, this is ok for the demo. If later we discover that this is not ok, and performance should be improved, we can implement better buffers.
Added simple buffers to store the results. The performance is not the best, as new memory is allocated at each iteration step. But considering the size of the simulations we are running, this is ok for the demo. If later we discover that this is not ok, and performance should be improved, we can implement better buffers.