-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of uninitialized values in GenericMoltresMaterial #75
Comments
@gridley Perhaps it should be the length of the temperature vector initialized above? |
Yep! Although there's no stuff in the temperature vector at that point. I'm really confused how this could have got there. Probably some accidental line deletion which didn't get caught in units tests, since this is in a code section which supports not using CHI_D, a previously missing feature in the code. If CHI_D is supplied, this shouldn't get called. Anyways... yes. I'm going to fix this now. |
It may appear to not be initialized, but always should be by the time that I think it makes sense to write the code this way. This part of code only gets turned on if CHI_D is missing, and you have to assume that the list of temperatures given for CHI_D matches the length of what was given in previous XSEC files. The best way to remove the "possibility" (someone editing the xsec_names variable) would be assume that cross sections can be interpolated in disparate ways, e.g. cubic splines on CHI, monotone cubics on CHI_D. Then CHI_D could be given a constant value of 1 in group 1. Since that would be a bit of effort and of marginal benefit, I propose we leave the code as-is. I hope this explanation doesn't suck. |
You do assignment in |
Closed with #76 |
@gridley,
git blame
tells me that this is your code inGenericMoltresMaterial::monotoneCubicConstruct
(and also similarly inGenericMoltresMaterial::linearConstruct
):In that last line,
tempLength
is used uninitialized. What should its value be?The text was updated successfully, but these errors were encountered: