#bug 580: prevent crash in case of hicum2 default parameter set

This commit is contained in:
dwarning 2022-04-29 18:40:19 +02:00 committed by Holger Vogt
parent 4038dd3a7f
commit 3d4d9b01d0
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ HICUMunsetup(
model = HICUMnextModel(model))
{
int selfheat = (((model->HICUMflsh == 1) || (model->HICUMflsh == 2)) && (model->HICUMrthGiven) && (model->HICUMrth > 0.0));
int nqs = ( (model->HICUMflnqs != 0 || model->HICUMflcomp < 2.3) && (model->HICUMalit > 0 || model->HICUMalqf > 0));
int nqs = ((model->HICUMflnqs != 0 || model->HICUMflcomp < 2.3) && (model->HICUMt0Given) && (model->HICUMt0 > 0.0) && (model->HICUMalit > 0 || model->HICUMalqf > 0));
for (here = HICUMinstances(model); here != NULL;
here=HICUMnextInstance(here))