Skip to content
Snippets Groups Projects
  1. Nov 09, 2017
    • Mark OLESEN's avatar
      ENH: region-wise decomposition specification for decomposeParDict · a9ffcab5
      Mark OLESEN authored
        Within decomposeParDict, it is now possible to specify a different
        decomposition method, methods coefficients or number of subdomains
        for each region individually.
      
        The top-level numberOfSubdomains remains mandatory, since this
        specifies the number of domains for the entire simulation.
        The individual regions may use the same number or fewer domains.
      
        Any optional method coefficients can be specified in a general
        "coeffs" entry or a method-specific one, eg "metisCoeffs".
      
        For multiLevel, only the method-specific "multiLevelCoeffs" dictionary
        is used, and is also mandatory.
      
      ----
      
      ENH: shortcut specification for multiLevel.
      
        In addition to the longer dictionary form, it is also possible to
        use a shorter notation for multiLevel decomposition when the same
        decomposition method applies to each level.
      a9ffcab5
  2. Nov 06, 2017
  3. Nov 30, 2017
  4. Nov 28, 2017
  5. Nov 27, 2017
  6. 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
  7. 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
  8. Nov 23, 2017
  9. Nov 22, 2017
  10. Nov 20, 2017
  11. Nov 19, 2017
  12. Nov 10, 2017
  13. 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
  14. 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
  15. Nov 18, 2017
  16. 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