Browse Source

USE_OMP, rename variables, `good' --> `error'

to express the actual meaning of these variables
pre-master-46
rlar 10 years ago
parent
commit
5b2fa579f1
  1. 10
      src/spicelib/devices/bsim3/b3ld.c
  2. 10
      src/spicelib/devices/bsim4/b4ld.c
  3. 10
      src/spicelib/devices/bsim4v6/b4v6ld.c
  4. 10
      src/spicelib/devices/bsim4v7/b4v7ld.c
  5. 10
      src/spicelib/devices/bsimsoi/b4soild.c
  6. 10
      src/spicelib/devices/hisim2/hsm2ld.c

10
src/spicelib/devices/bsim3/b3ld.c

@ -46,21 +46,21 @@ CKTcircuit *ckt)
#ifdef USE_OMP
int idx;
BSIM3model *model = (BSIM3model*)inModel;
int good = 0;
int error = 0;
BSIM3instance **InstArray;
InstArray = model->BSIM3InstanceArray;
#pragma omp parallel for
for (idx = 0; idx < model->BSIM3InstCount; idx++) {
BSIM3instance *here = InstArray[idx];
int local_good = BSIM3LoadOMP(here, ckt);
if (local_good)
good = local_good;
int local_error = BSIM3LoadOMP(here, ckt);
if (local_error)
error = local_error;
}
BSIM3LoadRhsMat(inModel, ckt);
return good;
return error;
}

10
src/spicelib/devices/bsim4/b4ld.c

@ -76,21 +76,21 @@ CKTcircuit *ckt)
#ifdef USE_OMP
int idx;
BSIM4model *model = (BSIM4model*)inModel;
int good = 0;
int error = 0;
BSIM4instance **InstArray;
InstArray = model->BSIM4InstanceArray;
#pragma omp parallel for
for (idx = 0; idx < model->BSIM4InstCount; idx++) {
BSIM4instance *here = InstArray[idx];
int local_good = BSIM4LoadOMP(here, ckt);
if (local_good)
good = local_good;
int local_error = BSIM4LoadOMP(here, ckt);
if (local_error)
error = local_error;
}
BSIM4LoadRhsMat(inModel, ckt);
return good;
return error;
}

10
src/spicelib/devices/bsim4v6/b4v6ld.c

@ -76,21 +76,21 @@ CKTcircuit *ckt)
#ifdef USE_OMP
int idx;
BSIM4v6model *model = (BSIM4v6model*)inModel;
int good = 0;
int error = 0;
BSIM4v6instance **InstArray;
InstArray = model->BSIM4v6InstanceArray;
#pragma omp parallel for
for (idx = 0; idx < model->BSIM4v6InstCount; idx++) {
BSIM4v6instance *here = InstArray[idx];
int local_good = BSIM4v6LoadOMP(here, ckt);
if (local_good)
good = local_good;
int local_error = BSIM4v6LoadOMP(here, ckt);
if (local_error)
error = local_error;
}
BSIM4v6LoadRhsMat(inModel, ckt);
return good;
return error;
}

10
src/spicelib/devices/bsim4v7/b4v7ld.c

@ -74,21 +74,21 @@ CKTcircuit *ckt)
#ifdef USE_OMP
int idx;
BSIM4v7model *model = (BSIM4v7model*)inModel;
int good = 0;
int error = 0;
BSIM4v7instance **InstArray;
InstArray = model->BSIM4v7InstanceArray;
#pragma omp parallel for
for (idx = 0; idx < model->BSIM4v7InstCount; idx++) {
BSIM4v7instance *here = InstArray[idx];
int local_good = BSIM4v7LoadOMP(here, ckt);
if (local_good)
good = local_good;
int local_error = BSIM4v7LoadOMP(here, ckt);
if (local_error)
error = local_error;
}
BSIM4v7LoadRhsMat(inModel, ckt);
return good;
return error;
}

10
src/spicelib/devices/bsimsoi/b4soild.c

@ -109,21 +109,21 @@ B4SOIload(
#ifdef USE_OMP
int idx;
B4SOImodel *model = (B4SOImodel*)inModel;
int good = 0;
int error = 0;
B4SOIinstance **InstArray;
InstArray = model->B4SOIInstanceArray;
#pragma omp parallel for
for (idx = 0; idx < model->B4SOIInstCount; idx++) {
B4SOIinstance *here = InstArray[idx];
int local_good = B4SOILoadOMP(here, ckt);
if (local_good)
good = local_good;
int local_error = B4SOILoadOMP(here, ckt);
if (local_error)
error = local_error;
}
B4SOILoadRhsMat(inModel, ckt);
return good;
return error;
}
int B4SOILoadOMP(B4SOIinstance *here, CKTcircuit *ckt) {

10
src/spicelib/devices/hisim2/hsm2ld.c

@ -228,21 +228,21 @@ int HSM2load(
#ifdef USE_OMP
int idx;
HSM2model *model = (HSM2model*)inModel;
int good = 0;
int error = 0;
HSM2instance **InstArray;
InstArray = model->HSM2InstanceArray;
#pragma omp parallel for
for (idx = 0; idx < model->HSM2InstCount; idx++) {
HSM2instance *here = InstArray[idx];
int local_good = HSM2LoadOMP(here, ckt);
if (local_good)
good = local_good;
int local_error = HSM2LoadOMP(here, ckt);
if (local_error)
error = local_error;
}
HSM2LoadRhsMat(inModel, ckt);
return good;
return error;
}
int HSM2LoadOMP(HSM2instance *here, CKTcircuit *ckt)

Loading…
Cancel
Save