Fix the overlap in state vector for sensitivity states of diode and bjt model.

This commit is contained in:
dwarning 2025-12-19 17:03:08 +01:00
parent e1afc5cf09
commit ee6cd951cd
2 changed files with 7 additions and 7 deletions

View File

@ -380,12 +380,12 @@ typedef struct sBJTinstance {
#define BJTnumStates 33
#define BJTsensxpbe BJTstate+24 /* charge sensitivities and their
derivatives. +25 for the derivatives -
#define BJTsensxpbe BJTstate+33 /* charge sensitivities and their
derivatives. +34 for the derivatives -
pointer to the beginning of the array */
#define BJTsensxpbc BJTstate+26
#define BJTsensxpsub BJTstate+28
#define BJTsensxpbx BJTstate+30
#define BJTsensxpbc BJTstate+35
#define BJTsensxpsub BJTstate+37
#define BJTsensxpbx BJTstate+39
#define BJTnumSenStates 8

View File

@ -265,8 +265,8 @@ typedef struct sDIOinstance {
#define DIOnumStates 15
#define DIOsensxp DIOstate+12 /* charge sensitivities and their derivatives.
* +10 for the derivatives - pointer to the
#define DIOsensxp DIOstate+15 /* charge sensitivities and their derivatives.
* +16 for the derivatives - pointer to the
* beginning of the array */
#define DIOnumSenStates 2