ywangd / mspms2

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

Add sanity check for vacancy in the molecule list #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
So that the program will not go out of range

Original issue reported on code.google.com by ywa...@gmail.com on 27 Mar 2008 at 12:11

GoogleCodeExporter commented 9 years ago
The check is added in SetNextVacancyAfterCreation().
Once there is no more vacancy for a specie after insertion. The program will 
stop and
report error.

If there is only one molecule left for a specie in the system, it cannot be 
deleted.
The program will report a warning for trying to delete the last molecule and it 
will
still run without performing the deletion.

Original comment by ywa...@gmail.com on 27 Mar 2008 at 12:14