Skip to content
Snippets Groups Projects
  1. Dec 13, 2018
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      BUG: stringOps etc expansion fails for directories (issue #1121) · 2db0db30
      Mark OLESEN authored
      - now use findEtcEntry() instead to handle file or directory.
      
        Added findEtcEntries(), which provides provides a common code basis
        for findEtcDirs(), findEtcFiles() ...
      2db0db30
    • Mark OLESEN's avatar
      ENH: add optional checkGzip parameter to fileName::type(..) method · 3d95f565
      Mark OLESEN authored
      - this simplifies use of a unified test for directory or file.
      
            fileName::Type what = myfile.type(true, true);
            if (what == FILE) ...
            if (what == DIRECTORY) ...
      
      - Use distinct bit values for fileName::Type, for possible use in
        the future.
      
      - related to issue #1121, since we need a more flexible way of
        expanding file or directory.
      
        An alternative would be to add checkGzip to Foam::exists() and
        Foam::type() functions, but that would make the code there more
        confusing and in the fileHandler classes.
      3d95f565
    • Mark OLESEN's avatar
      TUT: minor tutorial adjustments · 38de85cd
      Mark OLESEN authored
      38de85cd
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      ENH: consolidate handling of mandatory/optional command arguments · 5d9e278e
      Mark OLESEN authored
      - for some special cases we wish to mark command-line arguments as
        being optional, in order to do our own treatment. For example,
        when an arbitrary number of arguments should be allowed.
      
        Now tag this situation with argList::noMandatoryArgs().
        The argList::argsMandatory() query can then be used in any further
        logic, including the standard default argument checking.
      
      - with the new default check, can consolidate the special-purpose
      
            "setRootCaseNonMandatoryArgs.H"
      
        into the regular
      
            "setRootCase.H"
      
      - revert to a simple "setRootCase.H" and move all the listing related
        bits to a "setRootCaseLists.H" file. This leaves the information
        available for solvers, or whoever else wishes, without being
        introduced everywhere.
      
      - add include guards and scoping to the listing files and rename to
        something less generic.
      
           listOptions.H -> setRootCaseListOptions.H
           listOutput.H  -> setRootCaseListOutput.H
      5d9e278e
  2. Dec 12, 2018
  3. Dec 11, 2018
  4. Dec 10, 2018
  5. Dec 09, 2018