Etesian now verifies that the cell is not placed yet

This commit is contained in:
Gabriel Gouvine 2015-05-20 09:01:25 +02:00
parent b1ca43fd57
commit 56603ddc0d
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() );