mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: use new argList argRead() method and operator[] for cleaner code.
- deprecate argList::additionalArgs() method and remove uses of it
This commit is contained in:
@ -84,21 +84,20 @@ int main(int argc, char *argv[])
|
||||
<< " s\n" << endl << endl;
|
||||
|
||||
|
||||
//
|
||||
// Use boundaryMesh to reuse all the featureEdge stuff in there.
|
||||
//
|
||||
const scalar featureAngle = args.argRead<scalar>(1);
|
||||
const bool overwrite = args.optionFound("overwrite");
|
||||
|
||||
boundaryMesh bMesh;
|
||||
|
||||
scalar featureAngle(readScalar(IStringStream(args.additionalArgs()[0])()));
|
||||
const bool overwrite = args.optionFound("overwrite");
|
||||
|
||||
scalar minCos = Foam::cos(degToRad(featureAngle));
|
||||
const scalar minCos = Foam::cos(degToRad(featureAngle));
|
||||
|
||||
Info<< "Feature:" << featureAngle << endl
|
||||
<< "minCos :" << minCos << endl
|
||||
<< endl;
|
||||
|
||||
//
|
||||
// Use boundaryMesh to reuse all the featureEdge stuff in there.
|
||||
//
|
||||
|
||||
boundaryMesh bMesh;
|
||||
bMesh.read(mesh);
|
||||
|
||||
// Set feature angle (calculate feature edges)
|
||||
|
||||
Reference in New Issue
Block a user