Browse Source

hisimhv1: prevent a nonsens range check for model parameter qme2

pre-master-46
dwarning 11 years ago
parent
commit
eb99465713
  1. 2
      src/spicelib/devices/hisimhv1/hsmhvset.c

2
src/spicelib/devices/hisimhv1/hsmhvset.c

@ -1334,7 +1334,7 @@ do { if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NUL
RANGECHECK(model->HSMHV_sub2l, 0.0, 1.0, "SUB2L") ; RANGECHECK(model->HSMHV_sub2l, 0.0, 1.0, "SUB2L") ;
RANGECHECK(model->HSMHV_voverp, 0.0, 2.0, "VOVERP") ; RANGECHECK(model->HSMHV_voverp, 0.0, 2.0, "VOVERP") ;
RANGECHECK(model->HSMHV_qme1, 0.0, 300.0e-9, "QME1") ; RANGECHECK(model->HSMHV_qme1, 0.0, 300.0e-9, "QME1") ;
RANGECHECK(model->HSMHV_qme2, 0.0, 0.0, "QME2") ;
RANGECHECK(model->HSMHV_qme2, 0.0, 3.0, "QME2") ;
RANGECHECK(model->HSMHV_qme3, 0.0,800.0e-12, "QME3") ; RANGECHECK(model->HSMHV_qme3, 0.0,800.0e-12, "QME3") ;
RANGECHECK(model->HSMHV_glpart1, 0.0, 1.0, "GLPART1") ; RANGECHECK(model->HSMHV_glpart1, 0.0, 1.0, "GLPART1") ;
RANGECHECK(model->HSMHV_tnom, 22.0, 32.0, "TNOM") ; RANGECHECK(model->HSMHV_tnom, 22.0, 32.0, "TNOM") ;

Loading…
Cancel
Save