Commit f8aa1261 authored by franjo.juretic@c-fields.com's avatar franjo.juretic@c-fields.com
Browse files

Added missing support for cellSize in localRefinement


git-svn-id: https://pl5.projectlocker.com/igui/meshGeneration/svn@68 fdcce57e-7e00-11e2-b579-49867b4cea03
parent 209c98cb
......@@ -472,11 +472,20 @@ void checkMeshDict::updateLocalRefinementLevel
const wordList& updatedPatchNames = it->second;
const dictionary& pDict = dict.subDict(pName);
const label nLevels =
readLabel(pDict.lookup("additionalRefinementLevels"));
dictionary copy;
copy.add("additionalRefinementLevels", nLevels);
if( pDict.found("additionalRefinementLevels") )
{
const label nLevels =
readLabel(pDict.lookup("additionalRefinementLevels"));
copy.add("additionalRefinementLevels", nLevels);
}
else if( pDict.found("cellSize") )
{
const scalar cs = readScalar(pDict.lookup("cellSize"));
copy.add("cellSize", cs);
}
//- add new patches
forAll(updatedPatchNames, nameI)
......
Markdown is supported
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