ENH: partialWrite: support lagrangian
[OpenFOAM-1.7.x.git] / applications / utilities / miscellaneous / expandDictionary / expandDictionary.C
blob87943d1b77ccd7eedc2255dfb79b4830e36ac7b1
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by
13     the Free Software Foundation, either version 3 of the License, or
14     (at your option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
24 Application
25     expandDictionary
27 Description
28     Read the dictionary provided as an argument, expand the macros etc. and
29     write the resulting dictionary to standard output.
31 \*---------------------------------------------------------------------------*/
33 #include "argList.H"
34 #include "IFstream.H"
35 #include "dictionary.H"
37 using namespace Foam;
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 //  Main program:
42 int main(int argc, char *argv[])
44     argList::validArgs.clear();
45     argList::validArgs.append("inputDict");
46     argList args(argc, argv);
48     IFstream dictStream(args.additionalArgs()[0]);
49     dictionary inputDict(dictStream);
50     Info<< inputDict << endl;
52     return 0;
56 // ************************************************************************* //