From 56603ddc0d39f5ff7e87a7290fd0b25f5d2aecdc Mon Sep 17 00:00:00 2001 From: Gabriel Gouvine Date: Wed, 20 May 2015 09:01:25 +0200 Subject: [PATCH] Etesian now verifies that the cell is not placed yet --- etesian/src/EtesianEngine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etesian/src/EtesianEngine.cpp b/etesian/src/EtesianEngine.cpp index b754d36d..2e56286a 100644 --- a/etesian/src/EtesianEngine.cpp +++ b/etesian/src/EtesianEngine.cpp @@ -804,6 +804,10 @@ namespace Etesian { void EtesianEngine::place () { + if(getCell()->isPlaced()){ + cmess2 << Warning("The cell is already placed; returning") << std::endl; + return; + } getCell()->uniquify(); getConfiguration()->print( getCell() );