Merge branch 'Placement_verif' into collections

* Now verifies that the cell is not already placed
This commit is contained in:
Gabriel Gouvine 2015-06-02 10:33:37 +02:00
commit 47847d046e
1 changed files with 4 additions and 0 deletions

View File

@ -804,6 +804,10 @@ namespace Etesian {
void EtesianEngine::place () void EtesianEngine::place ()
{ {
if(getCell()->isPlaced()){
cmess2 << Warning("The cell is already placed; returning") << std::endl;
return;
}
getCell()->uniquify(); getCell()->uniquify();
getConfiguration()->print( getCell() ); getConfiguration()->print( getCell() );