sampleSet: Improve error message for renamed sets

This commit is contained in:
Will Bainbridge
2018-06-20 16:37:27 +01:00
parent 3ef4c803cd
commit 135e6eb8b9
5 changed files with 53 additions and 11 deletions

View File

@ -335,9 +335,11 @@ bool Foam::functionObjectList::readFunctionObject
}
// Merge this functionObject dictionary into functionsDict
const word funcNameArgsWord = string::validate<word>(funcNameArgs);
dictionary funcArgsDict;
funcArgsDict.add(string::validate<word>(funcNameArgs), funcDict);
funcArgsDict.add(funcNameArgsWord, funcDict);
functionsDict.merge(funcArgsDict);
functionsDict.subDict(funcNameArgsWord).name() = funcDict.name();
return true;
}