1. 21 Dec, 2018 3 commits
  2. 20 Dec, 2018 3 commits
  3. 19 Dec, 2018 5 commits
  4. 18 Dec, 2018 1 commit
  5. 17 Dec, 2018 3 commits
  6. 16 Dec, 2018 5 commits
  7. 15 Dec, 2018 3 commits
    • Mark Olesen's avatar
      ENH: build dummy runTimePostProcessing if VTK/ParaView are not available · 6d9c63a2
      Mark Olesen authored
      - this allows more use of the runTimePostProcessing functionObject
        that will fail more gracefully if the proper version could not be
        The dummy functionObject simply emits a message that it is not available.
    • Mark Olesen's avatar
      ENH: provide argList::envGlobalPath() static method · 4cf2168c
      Mark Olesen authored
      - this is identical to either of these solutions:
           * getEnv("FOAM_CASE")
           * stringOps::expand("<case>")
        but with a closer resemblance to argList or Time globalPath(),
        which makes the intent clearer.
        Avoids using raw strings in the caller, which improves compile-time checks.
        Used in situations where a class has no derivation path or other
        access to a time registry or command args.
    • Mark Olesen's avatar
      ENH: simplify use of case-relative paths · 70a50d61
      Mark Olesen authored
      - provide relativePath() for argList and for Time.
        These are relative to the case globalPath().
           Info<< "output: " << runTime.relativePath(outputFile) << nl;
  8. 14 Dec, 2018 3 commits
    • Mark Olesen's avatar
      ENH: make "file" property in functionObjects a relative path (issue #1125) · 0cbb07f5
      Mark Olesen authored
      - partial solution for issue #1091
        This generates file properties that are case-relative,
                    file "<case>/postProcessing/plane0/1/p_plane0.vtk";
                    file "<case>/postProcessing/plane0/1/U_plane0.vtk";
         This allows the case to be moved elsewhere and still find its files.
         This functionality was previously added for vtkCloud, but now also
         applies to streamLine, sampledSets and sampledSurfaces
    • Mark Olesen's avatar
      ENH: extend fileName::relative() method · b1a0007c
      Mark Olesen authored
      - optionally replace stripped parent directory with the \<case\> shortcut
          relative("/this/path")        -> "and/subdirs/name"
          relative("/this/path", true)  -> "\<case\>/and/subdirs/name"
    • Mark Olesen's avatar
      STYLE: option consistency for acousticDampingSource · 3d144a12
      Mark Olesen authored
      - accept origin or centre, as per other geometric entities
  9. 13 Dec, 2018 5 commits
    • Mark Olesen's avatar
      ENH: reduce number of warnings emitted by hierarchGeomDecomp · e1507c38
      Mark Olesen authored
      - it is sufficient to provide the total number of times that findBinary()
        failed instead of flooding the screen with messages
        Full verbose warnings still emitted when debugging is on.
    • mattijs's avatar
      ENH: sampledPatch: access to patchIDs. · 34134323
      mattijs authored
    • Mark Olesen's avatar
      BUG: stringOps etc expansion fails for directories (issue #1121) · 4f71e112
      Mark Olesen authored
      - now use findEtcEntry() instead to handle file or directory.
        Added findEtcEntries(), which provides provides a common code basis
        for findEtcDirs(), findEtcFiles() ...
    • Mark Olesen's avatar
      ENH: add optional checkGzip parameter to fileName::type(..) method · 81948ebc
      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.
    • Mark Olesen's avatar
      ENH: consolidate handling of mandatory/optional command arguments · 4aeb97b5
      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
        into the regular
      - 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
  10. 12 Dec, 2018 8 commits
  11. 11 Dec, 2018 1 commit