Skip to content
Snippets Groups Projects
  1. Jun 23, 2020
    • Mark OLESEN's avatar
      CONFIG: support openfoam -init=FILE · cbcc8754
      Mark OLESEN authored
      - useful for supporting a variety of different predefined
        configuration files. Bypasses the regular etc/bashrc entirely.
      
      - minor refactoring in foamCreateModuleInclude
      cbcc8754
  2. Jun 19, 2020
  3. Jun 08, 2020
  4. Jun 03, 2020
  5. May 29, 2020
  6. May 28, 2020
  7. May 12, 2020
    • Mark OLESEN's avatar
      ENH: add 'subcommand' handling to wmake (#1693) · 9e3d0685
      Mark OLESEN authored
      - initial split of wmake-related commands into "plumbing" and
        "porcelain" akin to how git handles things.
      
      - wmakeBuildInfo (very low-level), now relocated to the wmake/scripts
        and accessible for the user as "wmake -build-info".
      
        This satisfies a long-standing desire to access build information
        in a fashion similar to the api/patch information.
      
      CONFIG: avoid git information when building with a debian/ directory
      
      - when a 'debian/' directory exists, there is a high probability that
        the '.git/' directory is from debian and not from OpenFOAM (ie,
        useless here). This corresponds to an implicit '-no-git', which has
        no effect when building from pristine sources.
      
      ENH: wmakeCheckPwd becomes scripts/wmake-check-dir
      
      - accessible for the user as "wmake -check-dir" and with 1 or 2
        directory names. A wmakeCheckPwd symlink left for compatibility.
      9e3d0685
  8. May 11, 2020
  9. May 06, 2020
    • Mark OLESEN's avatar
      ENH: add paraFoam -plugin-path=DIR option · 0ec0facf
      Mark OLESEN authored
      - convenient way to use alternative plugin installations
      
      - provide separate -help-build information and reduce the noisy output
        when a reader module cannot be located.
      0ec0facf
  10. May 05, 2020
    • Mark OLESEN's avatar
      ENH: improve cmake/ParaView config handling · aafe674f
      Mark OLESEN authored
      - improve handling of changes in ParaView/VTK or cmake parameters (#1693)
      
        * adjust internals to support recording of an unlimited number of
          configuration parameters and use file `cmp` instead of trying
          to check strings ourselves.
      
      ENH: new wmake/scripts/wmake.cmake-args handler
      
      - additional handling of -prefix=... as CMAKE_INSTALL_PREFIX export.
      
      - in some contexts, can use instead of AllwmakeParseArguments
      aafe674f
  11. Apr 21, 2020
  12. Apr 15, 2020
  13. Apr 08, 2020
  14. Apr 06, 2020
  15. Mar 25, 2020
  16. Mar 17, 2020
  17. Mar 16, 2020
    • Mark OLESEN's avatar
      CONFIG: improve prefix matching for system libraries (#1607) · fe17c8ad
      Mark OLESEN authored
      - missed detection of system libraries when installed with multiarch
        paths like /usr/lib/x86_64-linux-gnu
      
      CONFIG: improve handling of group/user config files (#928)
      
      - changed bashrc handling of FOAM_CONFIG_NOUSER to use
        FOAM_CONFIG_MODE instead. Propagate into foamEtcFile to make this
        a stickier control.
      
        This change allows better control, but also enables cluster
        installations to define their own value within the OpenFOAM prefs.sh
        file to prevent users accidentally mis-configuring things if
        necessary.
      
      - remove undocumented handling of an (a)ll mode in foamEtcFile to
        avoid potential pitfalls.
      
      - add support for FOAM_CONFIG_ETC handling.
        This allows injection of an extra search layer when finding
        project etc files
      
      ENH: improvements to foamConfigurePaths (#928)
      
      - handle FOAM_CONFIG_ETC implicitly, or explicitly with the new
        -etc option.
      
      STYLE: more explicit wording in foamConfigurePaths usage (#1602)
      
      - document that an absolute path (eg, -scotch-path) overrides/ignores
        the equivalent ThirdParty setting (eg, -scotch)
      
      - longer options -system-compiler and -third-compiler for -system
        and -third, respectively. Clearer as to their purpose.
      
      - adjust the location sanity check to look for META-INFO directory.
      fe17c8ad
    • Mark OLESEN's avatar
      ENH: openfoam shell session - improved and relocated · ba3a31af
      Mark OLESEN authored
      - '-c' option (as per shell), '-Dkey[=value]' option to provide
        preferences via the command-line. For example,
      
            etc/openfoam -DWM_COMPILER=Clang -int64  ./Allwmake -j -s -l
      
        These can also be combined with other options. Eg,
      
            etc/openfoam -DWM_COMPILER=Clang \
                -c 'wmake -show-path-cxx -show-cxxflags'
      
      - relocated from bin/tools/ => etc/ for easier access
      
      - bin/tools/openfoam.in : for autoconfig-style installation
      
      - Auto-detect if the shell script was executed with openfoam and
        interpret accordingly.
      
        Simple example,
      
            --------------
            #!/usr/bin/openfoam
            cd "${0%/*}" || exit   # Run -*-sh-*- from this dir
      
            blockMesh
            simpleFoam
            --------------
      
         Note it is NOT currently possible to provide any other parameters
         this way. Eg,
      
            `#!/usr/bin/openfoam -sp` (NOT)
      
         This will either fail to run, or result in infinite recursion.
      ba3a31af
    • Mark OLESEN's avatar
      ENH: support packing of modules-only tar files (#907) · c35e7a7b
      Mark OLESEN authored
      - make tar-file generation more flexible
      c35e7a7b
  18. Feb 24, 2020
    • Mark OLESEN's avatar
      CONFIG: improve prefix matching for system libraries (#1607) · 5ba2cbc5
      Mark OLESEN authored
      - missed detection of system libraries when installed with multiarch
        paths like /usr/lib/x86_64-linux-gnu
      
      CONFIG: improve handling of group/user config files (#928)
      
      - changed bashrc handling of FOAM_CONFIG_NOUSER to use
        FOAM_CONFIG_MODE instead. Propagate into foamEtcFile to make this
        a stickier control.
      
        This change allows better control, but also enables cluster
        installations to define their own value within the OpenFOAM prefs.sh
        file to prevent users accidentally mis-configuring things if
        necessary.
      
      - remove undocumented handling of an (a)ll mode in foamEtcFile to
        avoid potential pitfalls.
      
      - add support for FOAM_CONFIG_ETC handling.
        This allows injection of an extra search layer when finding
        project etc files
      
      ENH: improvements to foamConfigurePaths (#928)
      
      - handle FOAM_CONFIG_ETC implicitly, or explicitly with the new
        -etc option.
      
      STYLE: more explicit wording in foamConfigurePaths usage (#1602)
      
      - document that an absolute path (eg, -scotch-path) overrides/ignores
        the equivalent ThirdParty setting (eg, -scotch)
      
      - longer options -system-compiler and -third-compiler for -system
        and -third, respectively. Clearer as to their purpose.
      
      - adjust the location sanity check to look for META-INFO directory.
      5ba2cbc5
  19. Feb 12, 2020
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      ENH: openfoam shell session - improved and relocated · f90de021
      Mark OLESEN authored
      - '-c' option (as per shell), '-Dkey[=value]' option to provide
        preferences via the command-line. For example,
      
            etc/openfoam -DWM_COMPILER=Clang -int64  ./Allwmake -j -s -l
      
        These can also be combined with other options. Eg,
      
            etc/openfoam -DWM_COMPILER=Clang \
                -c 'wmake -show-path-cxx -show-cxxflags'
      
      - relocated from bin/tools/ => etc/ for easier access
      
      - bin/tools/openfoam.in : for autoconfig-style installation
      
      - Auto-detect if the shell script was executed with openfoam and
        interpret accordingly.
      
        Simple example,
      
            --------------
            #!/usr/bin/openfoam
            cd "${0%/*}" || exit   # Run -*-sh-*- from this dir
      
            blockMesh
            simpleFoam
            --------------
      
         Note it is NOT currently possible to provide any other parameters
         this way. Eg,
      
            `#!/usr/bin/openfoam -sp` (NOT)
      
         This will either fail to run, or result in infinite recursion.
      f90de021
    • Mark OLESEN's avatar
      STYLE: limit foamEtcFile -show-api to querying the META-INFO/api-info · d483123c
      Mark OLESEN authored
      - simplifies code, covers most cases.
        Can use wmake -show-api or wmakeBuildInfo to query the make rules.
      
      STYLE: Allwmake script adjustments
      
      - use bin/foamEtcFile instead of relying on PATH.
        The make environment may not have the OpenFOAM bin/ in it.
      
      - simpler shell syntax
      d483123c
  20. Feb 07, 2020
  21. Feb 06, 2020
    • Mark OLESEN's avatar
      CONFIG: provide separate default settings for clang/gcc (fixes #1566) · 92a148e9
      Mark OLESEN authored
      - the foamConfigurePaths script is quite simplistic and aggressive in
        what it changes. This was particularly evident when using it to
        change gcc/clang versions.
      
        Restructured the corresponding compiler settings to define default
        versions (eg, "default_gcc_version") that limits the scope of
        changes performed by foamConfigurePaths and makes it easier to
        understand if changing manually.
      92a148e9
  22. Feb 03, 2020
    • Mark OLESEN's avatar
      CONFIG: provide separate default settings for clang/gcc (fixes #1566) · 81015889
      Mark OLESEN authored
      - the foamConfigurePaths script is quite simplistic and aggressive in
        what it changes. This was particularly evident when using it to
        change gcc/clang versions.
      
        Restructured the corresponding compiler settings to define default
        versions (eg, "default_gcc_version") that limits the scope of
        changes performed by foamConfigurePaths and makes it easier to
        understand if changing manually.
      81015889
  23. Jan 22, 2020
  24. Dec 23, 2019
  25. Dec 18, 2019
  26. Nov 25, 2019
  27. Nov 19, 2019
  28. Nov 18, 2019
  29. Nov 13, 2019
    • Mark OLESEN's avatar
      CONFIG: add build-info to archives · 297adc87
      Mark OLESEN authored
      - save in META-INFO/build-info for later re-compilation without git.
        This improves tracking beyond simply referring to the the patch level.
      
        The information is tagged with an underscore to distinguish from
        "real" build information when git is available.
      
      STYLE: improved shell syntax, pushd/popd guards etc.
      297adc87
  30. Nov 12, 2019
  31. Nov 01, 2019
  32. Oct 31, 2019
  33. Nov 10, 2019