cleanup some line wraps
This commit is contained in:
parent
ed6d7df0ce
commit
bedbdb65bb
|
|
@ -773,8 +773,7 @@ cp_evloop(char *string)
|
||||||
} else if (eq(wlist->wl_word, "continue")) {
|
} else if (eq(wlist->wl_word, "continue")) {
|
||||||
cend[stackp]->co_type = CO_CONTINUE;
|
cend[stackp]->co_type = CO_CONTINUE;
|
||||||
if (wlist->wl_next) {
|
if (wlist->wl_next) {
|
||||||
cend[stackp]->co_numtimes = scannum(wlist->
|
cend[stackp]->co_numtimes = scannum(wlist->wl_next->wl_word);
|
||||||
wl_next->wl_word);
|
|
||||||
if (wlist->wl_next->wl_next)
|
if (wlist->wl_next->wl_next)
|
||||||
fprintf(cp_err,
|
fprintf(cp_err,
|
||||||
"Warning: ignored extra junk after continue %d.\n",
|
"Warning: ignored extra junk after continue %d.\n",
|
||||||
|
|
@ -785,8 +784,7 @@ cp_evloop(char *string)
|
||||||
} else if (eq(wlist->wl_word, "break")) {
|
} else if (eq(wlist->wl_word, "break")) {
|
||||||
cend[stackp]->co_type = CO_BREAK;
|
cend[stackp]->co_type = CO_BREAK;
|
||||||
if (wlist->wl_next) {
|
if (wlist->wl_next) {
|
||||||
cend[stackp]->co_numtimes = scannum(wlist->
|
cend[stackp]->co_numtimes = scannum(wlist->wl_next->wl_word);
|
||||||
wl_next->wl_word);
|
|
||||||
if (wlist->wl_next->wl_next)
|
if (wlist->wl_next->wl_next)
|
||||||
fprintf(cp_err,
|
fprintf(cp_err,
|
||||||
"Warning: ignored extra junk after break %d.\n",
|
"Warning: ignored extra junk after break %d.\n",
|
||||||
|
|
|
||||||
|
|
@ -538,24 +538,21 @@ int sens_sens(CKTcircuit *ckt, int restart)
|
||||||
|
|
||||||
if (is_dc) {
|
if (is_dc) {
|
||||||
if (job->output_volt)
|
if (job->output_volt)
|
||||||
output_values[n] = delta_I
|
output_values[n] =
|
||||||
[job->output_pos->number]
|
delta_I [job->output_pos->number]
|
||||||
- delta_I
|
- delta_I [job->output_neg->number];
|
||||||
[job->output_neg->number];
|
|
||||||
else {
|
else {
|
||||||
output_values[n] = delta_I[branch_eq];
|
output_values[n] = delta_I[branch_eq];
|
||||||
}
|
}
|
||||||
output_values[n] /= delta_var;
|
output_values[n] /= delta_var;
|
||||||
} else {
|
} else {
|
||||||
if (job->output_volt) {
|
if (job->output_volt) {
|
||||||
output_cvalues[n].real = delta_I
|
output_cvalues[n].real =
|
||||||
[job->output_pos->number]
|
delta_I [job->output_pos->number]
|
||||||
- delta_I
|
- delta_I [job->output_neg->number];
|
||||||
[job->output_neg->number];
|
output_cvalues[n].imag =
|
||||||
output_cvalues[n].imag = delta_iI
|
delta_iI [job->output_pos->number]
|
||||||
[job->output_pos->number]
|
- delta_iI [job->output_neg->number];
|
||||||
- delta_iI
|
|
||||||
[job->output_neg->number];
|
|
||||||
} else {
|
} else {
|
||||||
output_cvalues[n].real =
|
output_cvalues[n].real =
|
||||||
delta_I[branch_eq];
|
delta_I[branch_eq];
|
||||||
|
|
|
||||||
|
|
@ -346,16 +346,17 @@ resume:
|
||||||
|
|
||||||
/* first get the current step in the analysis */
|
/* first get the current step in the analysis */
|
||||||
if (job->TRCVvType[0] == vcode) {
|
if (job->TRCVvType[0] == vcode) {
|
||||||
g_mif_info.circuit.evt_step = ((VSRCinstance *)(job->TRCVvElt[i]))
|
g_mif_info.circuit.evt_step =
|
||||||
->VSRCdcValue ;
|
((VSRCinstance *)(job->TRCVvElt[i]))->VSRCdcValue ;
|
||||||
} else if (job->TRCVvType[0] == icode) {
|
} else if (job->TRCVvType[0] == icode) {
|
||||||
g_mif_info.circuit.evt_step = ((ISRCinstance *)(job->TRCVvElt[i]))
|
g_mif_info.circuit.evt_step =
|
||||||
->ISRCdcValue ;
|
((ISRCinstance *)(job->TRCVvElt[i]))->ISRCdcValue ;
|
||||||
} else if (job->TRCVvType[0] == rcode) {
|
} else if (job->TRCVvType[0] == rcode) {
|
||||||
g_mif_info.circuit.evt_step = ((RESinstance*)(job->TRCVvElt[i]->GENmodPtr))
|
g_mif_info.circuit.evt_step =
|
||||||
->RESresist;
|
((RESinstance*)(job->TRCVvElt[i]->GENmodPtr))->RESresist;
|
||||||
} else if (job->TRCVvType[0] == TEMP_CODE) {
|
} else if (job->TRCVvType[0] == TEMP_CODE) {
|
||||||
g_mif_info.circuit.evt_step = ckt->CKTtemp - CONSTCtoK;
|
g_mif_info.circuit.evt_step =
|
||||||
|
ckt->CKTtemp - CONSTCtoK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if first time through, call EVTop immediately and save event results */
|
/* if first time through, call EVTop immediately and save event results */
|
||||||
|
|
@ -394,14 +395,11 @@ resume:
|
||||||
|
|
||||||
ckt->CKTmode = (ckt->CKTmode&MODEUIC) | MODEDCTRANCURVE | MODEINITPRED ;
|
ckt->CKTmode = (ckt->CKTmode&MODEUIC) | MODEDCTRANCURVE | MODEINITPRED ;
|
||||||
if (job->TRCVvType[0] == vcode) {
|
if (job->TRCVvType[0] == vcode) {
|
||||||
ckt->CKTtime = ((VSRCinstance *)(job->TRCVvElt[i]))
|
ckt->CKTtime = ((VSRCinstance *)(job->TRCVvElt[i]))->VSRCdcValue ;
|
||||||
->VSRCdcValue ;
|
|
||||||
} else if (job->TRCVvType[0] == icode) {
|
} else if (job->TRCVvType[0] == icode) {
|
||||||
ckt->CKTtime = ((ISRCinstance *)(job->TRCVvElt[i]))
|
ckt->CKTtime = ((ISRCinstance *)(job->TRCVvElt[i]))->ISRCdcValue ;
|
||||||
->ISRCdcValue ;
|
|
||||||
} else if (job->TRCVvType[0] == rcode) {
|
} else if (job->TRCVvType[0] == rcode) {
|
||||||
ckt->CKTtime = ((RESinstance *)(job->TRCVvElt[i]))
|
ckt->CKTtime = ((RESinstance *)(job->TRCVvElt[i]))->RESresist;
|
||||||
->RESresist;
|
|
||||||
}
|
}
|
||||||
/* PN Temp sweep */
|
/* PN Temp sweep */
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,7 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
branch = CKTfndBranch(ckt,here->ASRCtree->vars[i].uValue);
|
branch = CKTfndBranch(ckt,here->ASRCtree->vars[i].uValue);
|
||||||
asrc_vals[i] = *(ckt->CKTrhsOld+branch);
|
asrc_vals[i] = *(ckt->CKTrhsOld+branch);
|
||||||
} else {
|
} else {
|
||||||
node_num = (here->ASRCtree->vars[i].nValue)
|
node_num = here->ASRCtree->vars[i].nValue->number;
|
||||||
->number;
|
|
||||||
asrc_vals[i] = *(ckt->CKTrhsOld+node_num);
|
asrc_vals[i] = *(ckt->CKTrhsOld+node_num);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -392,8 +392,7 @@ d_p.d3_pqr = 0.0;
|
||||||
InvDeriv(&d_onfbdy,&d_onfbdy);
|
InvDeriv(&d_onfbdy,&d_onfbdy);
|
||||||
qbonco =gammas*sqphbs+model->MOS3narrowFactor*phibs/EffectiveWidth;
|
qbonco =gammas*sqphbs+model->MOS3narrowFactor*phibs/EffectiveWidth;
|
||||||
EqualDeriv(&d_dummy,&d_phibs);
|
EqualDeriv(&d_dummy,&d_phibs);
|
||||||
TimesDeriv(&d_dummy,&d_dummy,model->
|
TimesDeriv(&d_dummy,&d_dummy,model->MOS3narrowFactor*EffectiveWidth);
|
||||||
MOS3narrowFactor*EffectiveWidth);
|
|
||||||
MultDeriv(&d_qbonco,&d_gammas,&d_sqphbs);
|
MultDeriv(&d_qbonco,&d_gammas,&d_sqphbs);
|
||||||
PlusDeriv(&d_qbonco,&d_qbonco,&d_dummy);
|
PlusDeriv(&d_qbonco,&d_qbonco,&d_dummy);
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -394,8 +394,7 @@ d_p.d3_pqr = 0.0;
|
||||||
InvDeriv(&d_onfbdy,&d_onfbdy);
|
InvDeriv(&d_onfbdy,&d_onfbdy);
|
||||||
qbonco =gammas*sqphbs+model->MOS9narrowFactor*phibs/EffectiveWidth;
|
qbonco =gammas*sqphbs+model->MOS9narrowFactor*phibs/EffectiveWidth;
|
||||||
EqualDeriv(&d_dummy,&d_phibs);
|
EqualDeriv(&d_dummy,&d_phibs);
|
||||||
TimesDeriv(&d_dummy,&d_dummy,model->
|
TimesDeriv(&d_dummy,&d_dummy,model->MOS9narrowFactor*EffectiveWidth);
|
||||||
MOS9narrowFactor*EffectiveWidth);
|
|
||||||
MultDeriv(&d_qbonco,&d_gammas,&d_sqphbs);
|
MultDeriv(&d_qbonco,&d_gammas,&d_sqphbs);
|
||||||
PlusDeriv(&d_qbonco,&d_qbonco,&d_dummy);
|
PlusDeriv(&d_qbonco,&d_qbonco,&d_dummy);
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -607,10 +607,8 @@ dot_sens2(char *line, CKTcircuit *ckt, INPtables *tab, card *current,
|
||||||
ft_sim->analyses[which]->analysisParms[i].dataType, tab);
|
ft_sim->analyses[which]->analysisParms[i].dataType, tab);
|
||||||
error =
|
error =
|
||||||
ft_sim->setAnalysisParm (ckt, foo,
|
ft_sim->setAnalysisParm (ckt, foo,
|
||||||
ft_sim->
|
ft_sim->analyses[which]->analysisParms[i].id,
|
||||||
analyses
|
parm,
|
||||||
[which]->analysisParms
|
|
||||||
[i].id, parm,
|
|
||||||
NULL);
|
NULL);
|
||||||
if (error)
|
if (error)
|
||||||
current->error =
|
current->error =
|
||||||
|
|
|
||||||
|
|
@ -23,11 +23,9 @@ INPapName(CKTcircuit *ckt, int type, JOB *analPtr, char *parmname,
|
||||||
ft_sim->analyses[type]->analysisParms[i].keyword) ==
|
ft_sim->analyses[type]->analysisParms[i].keyword) ==
|
||||||
0) {
|
0) {
|
||||||
return ft_sim->setAnalysisParm (ckt, analPtr,
|
return ft_sim->setAnalysisParm (ckt, analPtr,
|
||||||
ft_sim->
|
ft_sim->analyses[type]->analysisParms[i].id,
|
||||||
analyses[type]->
|
value,
|
||||||
analysisParms[i].id,
|
NULL);
|
||||||
value,
|
|
||||||
NULL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (E_BADPARM);
|
return (E_BADPARM);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue