mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: argList::opt method instead of the longer argList::lookupOrDefault
- also replaced a few instances of readIfPresent with opt<> for constant values.
This commit is contained in:
@ -61,9 +61,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
const point samplePt
|
||||
(
|
||||
args.lookupOrDefault<scalar>("x", 0),
|
||||
args.lookupOrDefault<scalar>("y", 0),
|
||||
args.lookupOrDefault<scalar>("z", 0)
|
||||
args.opt<scalar>("x", 0),
|
||||
args.opt<scalar>("y", 0),
|
||||
args.opt<scalar>("z", 0)
|
||||
);
|
||||
Info<< "Looking for nearest face/vertex to " << samplePt << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user