|
|
@ -13,6 +13,7 @@ Modified: 1999 Paolo Nenzi |
|
|
#include "ngspice/cktdefs.h" |
|
|
#include "ngspice/cktdefs.h" |
|
|
#include "ngspice/const.h" |
|
|
#include "ngspice/const.h" |
|
|
#include "ngspice/sperror.h" |
|
|
#include "ngspice/sperror.h" |
|
|
|
|
|
#include "ngspice/fteext.h" |
|
|
|
|
|
|
|
|
#ifdef XSPICE |
|
|
#ifdef XSPICE |
|
|
#include "ngspice/evt.h" |
|
|
#include "ngspice/evt.h" |
|
|
@ -144,7 +145,7 @@ DCtrCurv(CKTcircuit *ckt, int restart) |
|
|
job->TRCVvType[i] = TEMP_CODE; /* Set the sweep type code */ |
|
|
job->TRCVvType[i] = TEMP_CODE; /* Set the sweep type code */ |
|
|
ckt->CKTtemp = job->TRCVvStart[i] + CONSTCtoK; /* Set the new circuit temp */ |
|
|
ckt->CKTtemp = job->TRCVvStart[i] + CONSTCtoK; /* Set the new circuit temp */ |
|
|
if (expr_w_temper) |
|
|
if (expr_w_temper) |
|
|
inp_evaluate_temper(); |
|
|
|
|
|
|
|
|
inp_evaluate_temper(ft_curckt); |
|
|
CKTtemp(ckt); |
|
|
CKTtemp(ckt); |
|
|
goto found; |
|
|
goto found; |
|
|
} |
|
|
} |
|
|
@ -277,7 +278,7 @@ DCtrCurv(CKTcircuit *ckt, int restart) |
|
|
} else if (job->TRCVvType[i] == TEMP_CODE) { |
|
|
} else if (job->TRCVvType[i] == TEMP_CODE) { |
|
|
ckt->CKTtemp = job->TRCVvStart[i] + CONSTCtoK; |
|
|
ckt->CKTtemp = job->TRCVvStart[i] + CONSTCtoK; |
|
|
if (expr_w_temper) |
|
|
if (expr_w_temper) |
|
|
inp_evaluate_temper(); |
|
|
|
|
|
|
|
|
inp_evaluate_temper(ft_curckt); |
|
|
CKTtemp(ckt); |
|
|
CKTtemp(ckt); |
|
|
} else if (job->TRCVvType[i] == rcode) { |
|
|
} else if (job->TRCVvType[i] == rcode) { |
|
|
((RESinstance *)(job->TRCVvElt[i]))->RESresist = |
|
|
((RESinstance *)(job->TRCVvElt[i]))->RESresist = |
|
|
@ -471,7 +472,7 @@ DCtrCurv(CKTcircuit *ckt, int restart) |
|
|
} else if (job->TRCVvType[i] == TEMP_CODE) { /* temperature */ |
|
|
} else if (job->TRCVvType[i] == TEMP_CODE) { /* temperature */ |
|
|
ckt->CKTtemp += job->TRCVvStep[i]; |
|
|
ckt->CKTtemp += job->TRCVvStep[i]; |
|
|
if (expr_w_temper) |
|
|
if (expr_w_temper) |
|
|
inp_evaluate_temper(); |
|
|
|
|
|
|
|
|
inp_evaluate_temper(ft_curckt); |
|
|
CKTtemp(ckt); |
|
|
CKTtemp(ckt); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -509,7 +510,7 @@ DCtrCurv(CKTcircuit *ckt, int restart) |
|
|
} else if (job->TRCVvType[i] == TEMP_CODE) { |
|
|
} else if (job->TRCVvType[i] == TEMP_CODE) { |
|
|
ckt->CKTtemp = job->TRCVvSave[i]; |
|
|
ckt->CKTtemp = job->TRCVvSave[i]; |
|
|
if (expr_w_temper) |
|
|
if (expr_w_temper) |
|
|
inp_evaluate_temper(); |
|
|
|
|
|
|
|
|
inp_evaluate_temper(ft_curckt); |
|
|
CKTtemp(ckt); |
|
|
CKTtemp(ckt); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|