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

Function main

applications/test/prefixOSstream/Test-prefixOSstream.C:46–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44// Main program:
45
46int main(int argc, char *argv[])
47{
48 argList args(argc, argv);
49
50 //Pout.prefix() = '[' + name(Pstream::myProcNo()) + "] ";
51
52 List<vector> list(IStringStream("1 ((0 1 2))")());
53 Info<< list << endl;
54
55 List<vector> list2
56 (
57 IStringStream
58 (
59 "(\
60 (0 1 2)\
61 (3 4 5)\
62 (3 4 5)\
63 (3 4 5)\
64 (3 4 5)\
65 (3 4 5)\
66 (3 4 5)\
67 (3 4 5)\
68 (3 4 5)\
69 (3 4 5)\
70 (3 4 5)\
71 (3 4 5)\
72 (3 4 5)\
73 (3 4 5)\
74 )"
75 )()
76 );
77 Pout<< list2 << endl;
78
79 Info<< findIndex(list2, vector(3, 4, 5)) << endl;
80
81 return 0;
82}
83
84
85// ************************************************************************* //

Callers

nothing calls this directly

Calls 3

listFunction · 0.85
IStringStreamClass · 0.85
findIndexFunction · 0.85

Tested by

no test coverage detected