faceReflecting radiationModel accesses unitialised data (valgrind)
Summary
faceReflecting
radiationModel accesses uninitialised value.
Steps to reproduce
Set up any case with faceReflecting.
Example case
tutorials/heatTransfer/buoyantSimpleFoam/simpleCarSolarPanel
and run
valgrind buoyantSimpleFoam
What is the current bug behaviour?
Tests uninitialised variable. The actual value will not get used though because of additional protection so the simulation proceeds correctly.
Environment information
- OpenFOAM version : v2206
Possible fixes
Initialise data to any value:
labelList refDirIndex(triangleIndex.size(), -1);
labelList refIndex(triangleIndex.size(), -1);