Merge branch 'Placement_verif' into collections
* Now verifies that the cell is not already placed
This commit is contained in:
commit
47847d046e
|
@ -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() );
|
||||||
|
|
Loading…
Reference in New Issue