ywangd / mspms2

Automatically exported from code.google.com/p/mspms2
0 stars 1 forks source link

Move the check of ensemble type out of the simulation step loop #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The check of Ensemble type should be done only once outside the simulation
step loop.

Currently, it is inside the step loop. So it will be checked for every
step, which is very inefficient. We should move it outside the step loop.

We need to put the step loop inside each of the check condition. This may
result more repeated code. But we gain a lot more from the performance.

Original issue reported on code.google.com by ywa...@gmail.com on 28 Nov 2007 at 9:52

GoogleCodeExporter commented 9 years ago
It is done for the MD simulation code. The MD code is separated into a new file.
We need to keep the loop inside the check for other future implementation.

Original comment by ywa...@gmail.com on 30 Nov 2007 at 7:21