introduce version parameter to prevent warnings in qa test

This commit is contained in:
dwarning 2020-06-11 15:29:40 +02:00
parent b401428cdd
commit 7578aec2a8
4 changed files with 18 additions and 0 deletions

View File

@ -484,6 +484,8 @@ typedef struct sHICUMmodel { /* model structure for a hicum */
int HICUMtype;
double HICUMtnom;
char *HICUMversion;
//Transfer current
double HICUMc10;
double HICUMqp0;
@ -663,6 +665,8 @@ typedef struct sHICUMmodel { /* model structure for a hicum */
unsigned HICUMtypeGiven : 1;
unsigned HICUMtnomGiven : 1;
unsigned HICUMversionGiven :1;
//Transfer current
unsigned HICUMc10Given : 1;
unsigned HICUMqp0Given : 1;
@ -868,6 +872,8 @@ enum {
HICUM_MOD_PNP,
HICUM_MOD_TNOM,
HICUM_MOD_VERSION,
//Transfer current
HICUM_MOD_C10,
HICUM_MOD_QP0,

View File

@ -37,6 +37,10 @@ HICUMmAsk(CKTcircuit *ckt, GENmodel *instPtr, int which, IFvalue *value)
value->rValue = here->HICUMtnom;
return(OK);
case HICUM_MOD_VERSION :
value->sValue = here->HICUMversion;
return(OK);
//Transfer current
case HICUM_MOD_C10:
value->rValue = here->HICUMc10;

View File

@ -44,6 +44,11 @@ HICUMmParam(int param, IFvalue *value, GENmodel *inModel)
model->HICUMtnomGiven = TRUE;
break;
case HICUM_MOD_VERSION :
model->HICUMversion = value->sValue;
model->HICUMversionGiven = TRUE;
break;
//Transfer current
case HICUM_MOD_C10:
model->HICUMc10 = value->rValue;

View File

@ -44,6 +44,9 @@ HICUMsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
if(!model->HICUMtnomGiven)
model->HICUMtnom = ckt->CKTnomTemp;
if (!model->HICUMversionGiven)
model->HICUMversion = copy("2.3.4");
//Transfer current
if(!model->HICUMc10Given)
model->HICUMc10 = 2e-30;