*** spice3f4/src/lib/ckt/acan.c Mon Apr 5 19:27:21 1993 --- spice3f4.1/src/lib/ckt/acan.c Wed Jun 29 08:52:20 1994 *************** *** 10,15 **** --- 10,16 ---- #include "devdefs.h" #include "util.h" #include "sperror.h" + #include "fteext.h" /* for ft_batchmode in IC-CAP hack, AEP APR-1994 */ #include "suffix.h" int *************** *** 31,36 **** --- 32,48 ---- if(((ACAN*)ckt->CKTcurJob)->ACsaveFreq == 0 || restart) { /* start at beginning */ + { + /* Hack for HP IC-CAP: Anthony Parker, April 1994. + When running linear ac sweep IC-CAP assumes that endpoints + are not counted in the number of frequency points, (a hang- + over from spice3d). IC-CAP only calls spice in batchmode. + Only increment number of steps on first time run. + */ + + if ( ft_batchmode && (((ACAN*)ckt->CKTcurJob)->ACsaveFreq == 0) ) + ((ACAN*)ckt->CKTcurJob)->ACnumberSteps += 2; + } if (((ACAN*)ckt->CKTcurJob)->ACnumberSteps < 1) ((ACAN*)ckt->CKTcurJob)->ACnumberSteps = 1;