PULSE: allow time < 0.0

This commit is contained in:
h_vogt 2010-11-20 17:18:23 +00:00
parent 05441d5823
commit 8ba1e81a9b
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-11-20
* vsracct.c: allow time < 0.0 if no XSPICE A device
FIXME has to be investigated further!
2010-11-19 Robert Larice 2010-11-19 Robert Larice
* */** : * */** :
Nr 5/5 (x = ...) == NULL , swallow warnings Nr 5/5 (x = ...) == NULL , swallow warnings

View File

@ -74,8 +74,11 @@ VSRCaccept(CKTcircuit *ckt, GENmodel *inModel)
/* offset time by delay and limit to zero */ /* offset time by delay and limit to zero */
time = ckt->CKTtime - TD; time = ckt->CKTtime - TD;
#ifdef XSPICE #ifdef XSPICE
if(time < 0.0) /* FIXME Why is this here?
time = 0.0; For now: Add it only if A devices are present.
h_vogt */
if ((ckt->CKTadevFlag == 1) && (time < 0.0))
time = 0.0;
#endif #endif
#ifdef XSPICE #ifdef XSPICE