Skip to content
Snippets Groups Projects
  1. Nov 28, 2017
  2. Nov 27, 2017
  3. Nov 26, 2017
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      STYLE: relegate special purpose readList<T> function to points of use · 2787a866
      Mark OLESEN authored
      - the readList<T>(Istream&) function was introduced to handle command
        -options with either a single or a list value, but was also used for
        the #remove dictionary directive. However, the parsing was fragile
        if the list did not start with a '('.
        Now handle command-line arg/option list directly (via ITstream)
        and #remove with special-purpose reading of a string or word list.
      
        This removes ambiguity and reduces potential future problems.
      
      STYLE: use ITstream instead of IStringStream for command-line lookups
      
      - parses directly to a tokenList without a string copy.
      2787a866
  4. Nov 24, 2017
    • Mark OLESEN's avatar
      ENH: more succinct output from command-line errors. · 5947f9a3
      Mark OLESEN authored
      - unknown options or missing option values now emit a shorter message
        without the entire usage. This makes it easier to identify the errors
        and is better aligned with the behaviour of GNU system tools.
      
        ====
           $ simpleFoam -case
           Using: OpenFOAM-plus (see www.OpenFOAM.com)
           Build: plus-01234
      
           Error: option '-case' requires an argument
      
           See 'simpleFoam -help' for usage
        ====
      
      - provide for reduced (-help) and full (-help-full) usage information.
        In many cases the reduced usage provided sufficient and easier
        to find the information.
      
      - make -srcDoc an alias for -doc-source
      
      - no warnings about option aliases for future dates.
      5947f9a3
    • Mark OLESEN's avatar
      ENH: argList::optionReadList now uses ITstream directly · 9985b93c
      Mark OLESEN authored
      - stricter and robuster than previous solution using List::readList
        since the option input can be fully tokenized prior to list
        conversion.
      9985b93c
    • Mark OLESEN's avatar
  5. Nov 23, 2017
  6. Nov 22, 2017
  7. Nov 20, 2017
  8. Nov 19, 2017
  9. Nov 10, 2017
  10. Nov 18, 2017
    • Mark OLESEN's avatar
      ENH: add argList support for non-mandatory arguments · 834d46c6
      Mark OLESEN authored
      - in rare cases we may wish to have command-line arguments that are
        non-mandatory. This can now be reflected in the usage output, provided
        that the argList::nonMandatoryArgs() has been used.
      
      - added setRootCaseNonMandatoryArgs.H that applies the
        argList::nonMandatoryArgs() settings and otherwise performs largely
        as per setRootCase.H, except that the check for mandatory arguments
        is deferred to later user code.
      834d46c6
  11. Nov 10, 2017
    • Mark OLESEN's avatar
      ENH: improved zone constructors · a59c87d5
      Mark OLESEN authored
      - constructor for empty cell/face/point Zones, with contents to be
        transferred in later.
      
      - ZoneMesh::operator(const word&) to return existing zone or a new empty one.
      a59c87d5
  12. Nov 18, 2017
  13. Nov 17, 2017
    • Mark OLESEN's avatar
      ENH: add -case option for foamLog · 810d090e
      Mark OLESEN authored
      810d090e
    • Mark OLESEN's avatar
      ENH: improve robustness of MPI start/stop · 9c3bef5a
      Mark OLESEN authored
      - warn or fatal if Pstream::init or Pstream::exit are called multiple
        times.
      
      - additional Pstream::initNull method as failsafe to initialize MPI
        when the underlying OpenFOAM process is not running in parallel but
        the application still needs MPI.
      
      - Pstream::exit() can now also be called without having used MPI::init(),
        which means it can be used to cleanup serial process or for
        applications that used the special purpose Pstream::initNull()
        mechanism.
      9c3bef5a
  14. Nov 13, 2017
  15. Nov 17, 2017
  16. Nov 16, 2017
  17. Nov 15, 2017
  18. Nov 14, 2017
  19. Nov 13, 2017