Fix a bug in the extrapolation formula:

NMOS and PMOS degradations are o.k. now!
This commit is contained in:
Holger Vogt 2026-02-18 14:52:23 +01:00
parent fda17107e1
commit e25cac4b82
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ void cm_degmon(ARGS) /* structure holding parms,
char *thisinstance = INSTNAME;
/**** model equations 3 ****/
sintegral = sintegral * tfut / tsim;
deg = 1. / (c * (pow(sintegral, -1.* n)));
deg = 1. / (c * (1. + pow(sintegral, (-1.* n))));
/***************************/
sintegral = 1e99; // flag final time step
/* only significant degradation */