From 71b000e1ad191f0bf57fd8c1a374389d94a0a03f Mon Sep 17 00:00:00 2001 From: dwarning Date: Thu, 12 Nov 2020 22:20:29 +0100 Subject: [PATCH] HICUM2 no need for return value in temp-update function --- src/spicelib/devices/hicum2/hicumL2.cpp | 4 +--- src/spicelib/devices/hicum2/hicumL2.hpp | 2 +- src/spicelib/devices/hicum2/hicumL2temp.cpp | 6 ++---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/spicelib/devices/hicum2/hicumL2.cpp b/src/spicelib/devices/hicum2/hicumL2.cpp index e6f9445a3..d7acc9fb2 100644 --- a/src/spicelib/devices/hicum2/hicumL2.cpp +++ b/src/spicelib/devices/hicum2/hicumL2.cpp @@ -411,8 +411,6 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt) //end of variables - int _iret; - #ifndef PREDICTOR double xfact; #endif @@ -1797,7 +1795,7 @@ HICUMload(GENmodel *inModel, CKTcircuit *ckt) // Thermal update if (selfheat) { Temp = here->HICUMtemp+Vrth; - _iret = hicum_thermal_update(model, here, &Temp, &Tdev_Vrth); + hicum_thermal_update(model, here, &Temp, &Tdev_Vrth); here->HICUMdtemp_sh = Temp - here->HICUMtemp; here->HICUMtemp_Vrth = Tdev_Vrth; diff --git a/src/spicelib/devices/hicum2/hicumL2.hpp b/src/spicelib/devices/hicum2/hicumL2.hpp index 984887e10..799e29856 100644 --- a/src/spicelib/devices/hicum2/hicumL2.hpp +++ b/src/spicelib/devices/hicum2/hicumL2.hpp @@ -12,7 +12,7 @@ extern "C" { #endif void hicum_diode(double T, double IS, double UM1, double U, double *Iz, double *Gz, double *Tz); void hicum_qjmodf(double T, double c_0, double u_d, double z, double a_j, double U_cap, double *C, double *C_dU, double *C_dvt, double *Qz, double *Qz_dU, double *Qz_dvt); - int hicum_thermal_update(HICUMmodel *, HICUMinstance *, double * Temp, double * Tdev_Vrth); + void hicum_thermal_update(HICUMmodel *, HICUMinstance *, double * Temp, double * Tdev_Vrth); int HICUMload(GENmodel *inModel, CKTcircuit *ckt); int HICUMtemp(GENmodel *inModel, CKTcircuit *ckt); #ifdef __cplusplus diff --git a/src/spicelib/devices/hicum2/hicumL2temp.cpp b/src/spicelib/devices/hicum2/hicumL2temp.cpp index 66f5bfc8e..205f87ae5 100644 --- a/src/spicelib/devices/hicum2/hicumL2temp.cpp +++ b/src/spicelib/devices/hicum2/hicumL2temp.cpp @@ -115,7 +115,6 @@ HICUMtemp(GENmodel *inModel, CKTcircuit *ckt) /* Pre-compute many useful parameters */ { - int iret; HICUMmodel *model = (HICUMmodel *)inModel; HICUMinstance *here; @@ -130,14 +129,14 @@ HICUMtemp(GENmodel *inModel, CKTcircuit *ckt) if(here->HICUMdtempGiven) here->HICUMtemp = here->HICUMtemp + here->HICUMdtemp; - iret = hicum_thermal_update(model, here, &here -> HICUMtemp, &here->HICUMtemp_Vrth); + hicum_thermal_update(model, here, &here -> HICUMtemp, &here->HICUMtemp_Vrth); } } return(OK); } -int hicum_thermal_update(HICUMmodel *inModel, HICUMinstance *inInstance, double * HICUMTemp, double * Tdev_Vrth) +void hicum_thermal_update(HICUMmodel *inModel, HICUMinstance *inInstance, double * HICUMTemp, double * Tdev_Vrth) { HICUMmodel *model = (HICUMmodel *)inModel; HICUMinstance *here = (HICUMinstance *)inInstance; @@ -517,5 +516,4 @@ int hicum_thermal_update(HICUMmodel *inModel, HICUMinstance *inInstance, double here->HICUMrth_t.rpart = a.rpart(); here->HICUMrth_t.dpart = a.dpart(); - return(0); }