Skip to content
Snippets Groups Projects
Commit 494ce72e authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: surfaceNoise - provide backwards compatibility for inputFile keyword

parent 1022f4fc
No related merge requests found
......@@ -427,7 +427,16 @@ bool surfaceNoise::read(const dictionary& dict)
{
if (noiseModel::read(dict))
{
dict.lookup("inputFiles") >> inputFileNames_;
if (dict.found("inputFile"))
{
inputFileNames_.setSize(1);
dict.lookup("inputFile") >> inputFileNames_[0];
}
else
{
dict.lookup("inputFiles") >> inputFileNames_;
}
dict.readIfPresent("fftWriteInterval", fftWriteInterval_);
dict.readIfPresent("p", pName_);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment