BUGFIX: Illegal use of uninitialised value (backport)
[foam-extend-3.2.git] / applications / utilities / postProcessing / miscellaneous / pdfPlot / createFields.H
blobc9255fc4cfb72a9e3cb92a2fc8ce7050e29b2ccb
1     IOdictionary pdfDictionary
2     (
3         IOobject
4         (
5             "pdfDictionary",
6             runTime.constant(),
7             runTime,
8             IOobject::MUST_READ,
9             IOobject::NO_WRITE
10         )
11     );
13     label nIntervals
14     (
15         readLabel(pdfDictionary.lookup("nIntervals"))
16     );
18     label nSamples
19     (
20         readLabel(pdfDictionary.lookup("nSamples"))
21     );
23     label samples[nIntervals];
25     for(label i=0;i<nIntervals;i++)
26     {
27         samples[i] = 0;
28     }