mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: change argList get<> and getList<> from read<>, readList<>
- more consistent with dictionary method naming. The get<> or getList<> returns a value, doesn't read into a existing location.
This commit is contained in:
@ -366,13 +366,15 @@ int main(int argc, char *argv[])
|
||||
|
||||
const word oldInstance = mesh.pointsInstance();
|
||||
|
||||
const scalar featureAngle = args.read<scalar>(1);
|
||||
const scalar featureAngle = args.get<scalar>(1);
|
||||
const scalar minCos = Foam::cos(degToRad(featureAngle));
|
||||
|
||||
// Sin of angle between two consecutive edges on a face.
|
||||
// If sin(angle) larger than this the face will be considered concave.
|
||||
scalar concaveAngle = args.lookupOrDefault("concaveAngle", 30.0);
|
||||
scalar concaveSin = Foam::sin(degToRad(concaveAngle));
|
||||
const scalar concaveAngle =
|
||||
args.lookupOrDefault<scalar>("concaveAngle", 30);
|
||||
|
||||
const scalar concaveSin = Foam::sin(degToRad(concaveAngle));
|
||||
|
||||
const bool overwrite = args.found("overwrite");
|
||||
const bool meshQuality = args.found("meshQuality");
|
||||
|
||||
Reference in New Issue
Block a user