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

to express the actual meaning of these variables
This commit is contained in:
rlar 2016-07-09 15:20:31 +02:00
parent fddbb7d9eb
commit 5b2fa579f1
6 changed files with 30 additions and 30 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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