mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://dm/home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -42,11 +42,20 @@ int main(int argc, char *argv[])
|
||||
argList::validArgs.append("CHEMKINThermodynamicsFile");
|
||||
argList::validArgs.append("FOAMChemistryFile");
|
||||
argList::validArgs.append("FOAMThermodynamicsFile");
|
||||
|
||||
argList::addBoolOption
|
||||
(
|
||||
"newFormat",
|
||||
"read Chemkin thermo file in new format"
|
||||
);
|
||||
|
||||
argList args(argc, argv);
|
||||
|
||||
bool newFormat = args.optionFound("newFormat");
|
||||
|
||||
speciesTable species;
|
||||
|
||||
chemkinReader cr(args[1], species, args[2]);
|
||||
chemkinReader cr(args[1], species, args[2], newFormat);
|
||||
|
||||
OFstream reactionsFile(args[3]);
|
||||
reactionsFile
|
||||
|
||||
Reference in New Issue
Block a user