Browse Source

make nthreads local

pre-master-46
Holger Vogt 5 months ago
parent
commit
4560fce4af
  1. 5
      src/spicelib/analysis/cktsetup.c

5
src/spicelib/analysis/cktsetup.c

@ -23,7 +23,6 @@ Author: 1985 Thomas L. Quarles
#ifdef USE_OMP #ifdef USE_OMP
#include <omp.h> #include <omp.h>
#include "ngspice/cpextern.h" #include "ngspice/cpextern.h"
int nthreads;
#endif #endif
#define CKALLOC(var,size,type) \ #define CKALLOC(var,size,type) \
@ -36,7 +35,9 @@ CKTsetup(CKTcircuit *ckt)
{ {
int i; int i;
int error; int error;
#ifdef USE_OMP
int nthreads = 2;
#endif
#ifdef XSPICE #ifdef XSPICE
/* gtri - begin - Setup for adding rshunt option resistors */ /* gtri - begin - Setup for adding rshunt option resistors */
CKTnode *node; CKTnode *node;

Loading…
Cancel
Save