Skip to content
Snippets Groups Projects
  1. Aug 03, 2017
    • Mark OLESEN's avatar
      CONFIG: additional filenames completion for bash_completion · 78da7dbd
      Mark OLESEN authored
      - handles the case where we are currently completing something that
        does not appear to be an option. For example,
      
            foamDictionary -expanded someD[TAB]
      
        should complete the filename, not present more options.
      78da7dbd
    • Mark OLESEN's avatar
      STYLE: return const char* in CStringList::data() · 41c103b7
      Mark OLESEN authored
      - and other code style adjustments
      41c103b7
    • Mark OLESEN's avatar
      STYLE: manage dictionary inputMode directly within entry class · 5148e4f8
      Mark OLESEN authored
      - The logic for switching input-mode was previously completely
        encapsulated within the #inputMode directive, but without any
        programming equivalent. Furthermore, the encapsulation in inputMode
        made the logic less clear in other places.
      
        Exposing the inputMode as an enum with direct access from entry
        simplifies things a fair bit.
      
      - eliminate one level of else/if nesting in entryIO.C for clearer logic
      
      - for dictionary function entries, simply use
        addNamedToMemberFunctionSelectionTable() and avoid defining a type()
        as a static. For most function entries the information is only used
        to get a name for the selection table lookup anyhow.
      5148e4f8
    • Mark OLESEN's avatar
      TUT: use general 'scale' instead of 'convertToMeters' in blockMeshDict · c2a0663c
      Mark OLESEN authored
      - although this has been supported for many years, the tutorials
        continued to use "convertToMeters" entry, which is specific to blockMesh.
        The "scale" is more consistent with other dictionaries.
      
      ENH:
      - ignore "scale 0;" (treat as no scaling) for blockMeshDict,
        consistent with use elsewhere.
      c2a0663c
  2. Aug 02, 2017
  3. Jul 31, 2017
  4. Jul 29, 2017
    • Mark OLESEN's avatar
      ENH: additional method for switching error throwing on/off (issue #552) · 797155f8
      Mark OLESEN authored
      - error::throwExceptions(bool) returning the previous state makes it
        easier to set and restore states.
      
      - throwing() method to query the current handling (if required).
      
      - the normal error::throwExceptions() and error::dontThrowExceptions()
        also return the previous state, to make it easier to restore later.
      797155f8
  5. Jul 28, 2017
  6. Jul 27, 2017
  7. Jul 22, 2017
  8. Jul 21, 2017
  9. Jul 20, 2017
  10. Jul 19, 2017
  11. Jul 17, 2017
  12. Jul 20, 2017
  13. Jul 19, 2017
  14. Jul 18, 2017
  15. Jul 17, 2017
    • Mark OLESEN's avatar
      ENH: added OStringStream reset method (closes #534) · b4b50a3a
      Mark OLESEN authored
      - resets the output buffer completely - implementing what rewind was
        likely meant to have accomplished for many use cases.
      
      STYLE: OSHA1stream reset() for symmetry. Deprecate rewind().
      b4b50a3a
    • Mark OLESEN's avatar
      ENH: make treatment of stream allocators more uniform (issue #532) · 86ef9e86
      Mark OLESEN authored
      - use allocator class to wrap the stream pointers instead of passing
        them into ISstream, OSstream and using a dynamic cast to delete
        then. This is especially important if we will have a bidirectional
        stream (can't delete twice!).
      
      STYLE:
      
      - file stream constructors with std::string (C++11)
      
      - for rewind, explicit about in|out direction. This is not currently
        important, but avoids surprises with any future bidirectional access.
      
      - combined string streams in StringStream.H header.
        Similar to <sstream> include that has both input and output string
        streams.
      86ef9e86
    • Mark OLESEN's avatar
      8399277d