From 748289ad7e700b81f33c595f6b9186d2cd81baad Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 5 Aug 2020 01:29:37 +0200 Subject: [PATCH] Correct context for error message in EtesianEngine::setDefaultAb(). --- etesian/src/EtesianEngine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etesian/src/EtesianEngine.cpp b/etesian/src/EtesianEngine.cpp index 38e38d66..94f90b4d 100644 --- a/etesian/src/EtesianEngine.cpp +++ b/etesian/src/EtesianEngine.cpp @@ -384,7 +384,12 @@ namespace Etesian { continue; } - cmess2 << " - Using as block: " << occurrence.getCompactString() << "." << endl; + if (masterCell->getAbutmentBox().getHeight() != getSliceHeight()) { + cmess2 << " - Using as block: " << occurrence.getCompactString() << "." << endl; + + cerr << Error( "EtesianEngine::setDefaultAb(): Block instances are not managed, \"%s\"." + , getString(instance->getName()).c_str() ) << endl; + } cellLength += DbU::toLambda( _bloatCells.getAb( occurrence ).getWidth() ); instanceNb += 1; }