ENH: add default control values to ease SIMPLE->PIMPLE transition

- add const-ness for control variables

- drop unused fluxGradp variable

- use lookupOrDefault instead of found/lookup combination
This commit is contained in:
Mark Olesen
2010-05-20 08:24:55 +02:00
parent 0abf9b4529
commit 80b8071e75
18 changed files with 93 additions and 134 deletions

View File

@ -1,5 +1,6 @@
const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");
int nCorr(readInt(stressControl.lookup("nCorrectors")));
const int nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
scalar convergenceTolerance(readScalar(stressControl.lookup("D")));
Switch compactNormalStress(stressControl.lookup("compactNormalStress"));