cktsetup.c, invoke `SetAnalyse("Device Setup",...)' only once
This commit is contained in:
parent
494a58cca9
commit
f52a12a95a
|
|
@ -69,10 +69,11 @@ CKTsetup(CKTcircuit *ckt)
|
||||||
printf("OpenMP: %d threads are requested in ngspice\n", nthreads);*/
|
printf("OpenMP: %d threads are requested in ngspice\n", nthreads);*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i=0;i<DEVmaxnum;i++) {
|
|
||||||
#ifdef HAS_PROGREP
|
#ifdef HAS_PROGREP
|
||||||
SetAnalyse( "Device Setup", 0 );
|
SetAnalyse("Device Setup", 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
for (i=0;i<DEVmaxnum;i++) {
|
||||||
if ( DEVices[i] && DEVices[i]->DEVsetup && ckt->CKThead[i] ) {
|
if ( DEVices[i] && DEVices[i]->DEVsetup && ckt->CKThead[i] ) {
|
||||||
error = DEVices[i]->DEVsetup (matrix, ckt->CKThead[i], ckt,
|
error = DEVices[i]->DEVsetup (matrix, ckt->CKThead[i], ckt,
|
||||||
&ckt->CKTnumStates);
|
&ckt->CKTnumStates);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue