Commit 65a2138b authored by Gregor Olenik's avatar Gregor Olenik
Browse files

Use Foam switches to read dictionary entries

parent 0ba7f962
......@@ -201,6 +201,8 @@ class lduLduCommonBase {
// should be sorted
const bool sort_;
const bool verbose_;
const word app_executor_name_;
const word device_executor_name_;
......@@ -236,8 +238,9 @@ public:
nElems_(nCells_ + 2 * nNeighbours_),
export_(controlDict.lookupOrDefault<bool>("export", false)),
sort_(controlDict.lookupOrDefault<bool>("sort", true)),
export_(controlDict.lookupOrDefault<Switch>("export", false)),
sort_(controlDict.lookupOrDefault<Switch>("sort", true)),
verbose_(controlDict.lookupOrDefault<Switch>("verbose", false)),
controlDict.lookupOrDefault("executor", word("reference"))),
Supports Markdown
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