Skip to content
  • Mark Olesen's avatar
    ENH: support ASCII List output on a single-line · e3d9084c
    Mark Olesen authored
    - Introduce writeList(Ostream&, label) method in various List classes to
      provide more flexibility and avoid hard-coded limits when deciding if a
      list is too long and should be broken up into multiple lines (ASCII only).
    - The old hard-code limit (10) is retained in the operator<< versions
    - This functionality is wrapped in the FlatOutput output adapter class
      and directly accessible via the 'flatOutput()' function.
        #include "ListOps.H"
        Info<< "methods: " << flatOutput(myLongList) << endl;
        // OR
        Info<< "methods: ";
        myLongList.writeList(os) << endl;