From c9b729032d41acff57c904baae56f8a4ea3e4da7 Mon Sep 17 00:00:00 2001 From: dwarning Date: Wed, 4 Jul 2012 22:41:56 +0200 Subject: [PATCH] no double count of area for capacitances --- src/spicelib/devices/dio/dioload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spicelib/devices/dio/dioload.c b/src/spicelib/devices/dio/dioload.c index e9c87ebb0..416cc8072 100644 --- a/src/spicelib/devices/dio/dioload.c +++ b/src/spicelib/devices/dio/dioload.c @@ -332,8 +332,8 @@ next1: if (model->DIOsatSWCurGiven) { /* consider sidewall currents */ /* * charge storage elements */ - czero=here->DIOtJctCap*here->DIOarea; - czeroSW=here->DIOtJctSWCap*here->DIOpj; + czero=here->DIOtJctCap; + czeroSW=here->DIOtJctSWCap; if (vd < here->DIOtDepCap){ arg=1-vd/here->DIOtJctPot; argSW=1-vd/here->DIOtJctSWPot;