From 1d570a5b678910ef3ccc89c5ed4d3791368d11bf Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sat, 4 Jun 2022 21:09:54 -0400 Subject: [PATCH] Found one more error that was causing issues with the hierarchical capacitance adjustments, and may have caused issues with basic hierarchical extraction as well (although I have not checked or proven the latter). --- extract/ExtBasic.c | 11 +++++++---- extract/ExtHier.c | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/extract/ExtBasic.c b/extract/ExtBasic.c index c50b9065..8ef70d31 100644 --- a/extract/ExtBasic.c +++ b/extract/ExtBasic.c @@ -4018,10 +4018,13 @@ extNodeAreaFunc(tile, arg) TITORECT(tile, &r); /* Check if the tile is outside the clip area */ - if (!GEO_OVERLAP(&r, extNodeClipArea)) continue; - - GEOCLIP(&r, extNodeClipArea); - area = (dlong)(r.r_xtop - r.r_xbot) * (dlong)(r.r_ytop - r.r_ybot); + if (GEO_OVERLAP(&r, extNodeClipArea)) + { + GEOCLIP(&r, extNodeClipArea); + area = (dlong)(r.r_xtop - r.r_xbot) * (dlong)(r.r_ytop - r.r_ybot); + } + else + area = (dlong)0; } else area = (dlong)(TOP(tile) - BOTTOM(tile)) * (dlong)(RIGHT(tile) - LEFT(tile)); diff --git a/extract/ExtHier.c b/extract/ExtHier.c index 42035719..4b36a648 100644 --- a/extract/ExtHier.c +++ b/extract/ExtHier.c @@ -772,7 +772,7 @@ extHierAdjustments(ha, cumFlat, oneFlat, lookFlat) && (he = HashLookOnly(&ha->ha_connHash, name)) && (nn = (NodeName *) HashGetValue(he))) { - /* Adjust the capacitance and resistance */ + /* Adjust the capacitance and resistance on the node */ nn->nn_node->node_cap -= np->nreg_cap; for (n = 0; n < ExtCurStyle->exts_numResistClasses; n++) {