mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Surface utilities: standardised argument naming and ordering
for input and output surface files
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -51,19 +51,19 @@ using namespace Foam;
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
argList::noParallel();
|
||||
argList::validArgs.append("surface file");
|
||||
argList::validArgs.append("output surface file");
|
||||
argList::validArgs.append("surfaceSubsetDict");
|
||||
argList::validArgs.append("surfaceFile");
|
||||
argList::validArgs.append("output surfaceFile");
|
||||
argList args(argc, argv);
|
||||
|
||||
Info<< "Reading dictionary " << args[1] << " ..." << endl;
|
||||
IFstream dictFile(args[1]);
|
||||
Info<< "Reading dictionary " << args[3] << " ..." << endl;
|
||||
IFstream dictFile(args[3]);
|
||||
dictionary meshSubsetDict(dictFile);
|
||||
|
||||
Info<< "Reading surface " << args[2] << " ..." << endl;
|
||||
triSurface surf1(args[2]);
|
||||
Info<< "Reading surface " << args[1] << " ..." << endl;
|
||||
triSurface surf1(args[1]);
|
||||
|
||||
const fileName outFileName(args[3]);
|
||||
const fileName outFileName = args[2];
|
||||
|
||||
|
||||
Info<< "Original:" << endl;
|
||||
|
||||
Reference in New Issue
Block a user