MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / main

Function main

applications/test/codeStream/Test-codeStream.C:42–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40// Main program:
41
42int main(int argc, char *argv[])
43{
44 argList::noParallel();
45 argList::validArgs.insert("dict .. dictN");
46 argList args(argc, argv, false, true);
47
48 Info<< nl
49 << "FOAM_CASE=" << getEnv("FOAM_CASE") << nl
50 << "FOAM_CASENAME=" << getEnv("FOAM_CASENAME") << nl
51 << endl;
52
53 if (args.size() <= 1)
54 {
55 Info<<"specify dictionaries to test\n";
56 }
57 else
58 {
59 IOobject::writeDivider(Info);
60 for (label argI=1; argI < args.size(); ++argI)
61 {
62 const string& dictFile = args[argI];
63 IFstream is(dictFile);
64
65 dictionary dict(is);
66
67 Info<< dict << endl;
68 }
69 }
70
71 return 0;
72}
73
74
75// ************************************************************************* //

Callers

nothing calls this directly

Calls 3

noParallelFunction · 0.85
insertMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected