cktsetup.c, invoke `SetAnalyse("Device Setup",...)' only once

This commit is contained in:
h_vogt 2016-03-25 17:43:37 +01:00 committed by rlar
parent 494a58cca9
commit f52a12a95a
1 changed files with 3 additions and 2 deletions

View File

@ -69,10 +69,11 @@ CKTsetup(CKTcircuit *ckt)
printf("OpenMP: %d threads are requested in ngspice\n", nthreads);*/
#endif
for (i=0;i<DEVmaxnum;i++) {
#ifdef HAS_PROGREP
SetAnalyse( "Device Setup", 0 );
SetAnalyse("Device Setup", 0);
#endif
for (i=0;i<DEVmaxnum;i++) {
if ( DEVices[i] && DEVices[i]->DEVsetup && ckt->CKThead[i] ) {
error = DEVices[i]->DEVsetup (matrix, ckt->CKThead[i], ckt,
&ckt->CKTnumStates);