Skip to content
Snippets Groups Projects
  1. Dec 14, 2017
  2. Nov 20, 2017
  3. Nov 22, 2017
  4. Nov 03, 2017
  5. Aug 10, 2017
  6. Aug 04, 2017
  7. Jul 31, 2017
    • Mark OLESEN's avatar
      ENH: improve bash completion functionality (issue #551) · c614110d
      Mark OLESEN authored
      - use complete -o filenames, dropped -o nospace to make it more responsive.
      
      - restructure completion code to use a unified backend, which makes it easier
        understand, maintain and re-use.
      
      - foamCreateBashCompletions now simply outputs to a stdout, and allows
        quick generation of completion of single applications.
      
      - add -fileHandler completion in anticipation of future changes there.
      
      - relocated as etc/config.s/bash_completion to prevent inadvertently
        having two versions (.com, .org) installed at the same time.
      c614110d
  8. Jul 05, 2017
    • Mark OLESEN's avatar
      ENH: add trapFpe and setNaN optimisationSwitch (issue #517) · c50368ec
      Mark OLESEN authored
      - allows configuration without an environment variable.
        For compatibility still respect FOAM_SIGFPE and FOAM_SETNAN
        env-variables
      
      - The env-variables are now treated as true/false switch values.
        Previously there was just a check for env exists or not, but this
        can be fairly fragile for a user's environment.
      c50368ec
  9. Jun 21, 2017
  10. Jun 14, 2017
  11. Jun 08, 2017
  12. Apr 20, 2017
    • Mark Olesen's avatar
      CONFIG: address differences between shells · 7f01a4be
      Mark Olesen authored
      - suppress error messages that appear with zsh.
        According to unset(1p), 'unset -f' unsets a function.
        If the function was not previously defined, this is a no-op.
        This is similar for zsh, but there it emits a warning if the
        function was not previously defined.
      
      - avoid 'local' in functions sources from etc/bashrc.
        ksh does not support this.
      
      - use 'command' shell builtin instead of 'type'.
        Seems to be more consistent between shell flavours.
      7f01a4be
  13. Apr 03, 2017
  14. Mar 29, 2017
    • Mark Olesen's avatar
      ENH: improve MPI configuration possibilities · 3ece6e52
      Mark Olesen authored
      - permit SYSTEMMPI user adjustments via
            etc/config.{csh,sh}/mpi-system
        This can be a convenient place for setting up SYSTEMMPI for OpenFOAM
        without adjusting bashrc, prefs.sh ...
      
      - add a USERMPI type. This represents any generic mpi implementation.
        The user is responsible for supplying an appropriate
        wmake/rules/General/mplibUSERMPI file and managing all settings.
      
        This type of setup can be useful in combination with specific build
        systems (SPACK, EASYBUILD, etc) or module systems for which the MPI
        variant is part of the installed configuration.
      3ece6e52
  15. Mar 23, 2017
  16. Mar 22, 2017
  17. Mar 13, 2017
  18. Mar 20, 2017
    • Mark Olesen's avatar
      ENH: minor improvements to environment · b970ba09
      Mark Olesen authored
      - handle sourcing bashrc with a relative path (issue #383)
      - handle sourcing from bash and zsh.
        Still need manual intervention when sourcing dash, sh, or ksh.
      - replace grep in etc/cshrc with sed only
      - logical instead of physical path for WM_PROJECT_DIR (issue #431).
        Doesn't seem to be possible for csh/tcsh.
      
        * Continue using physical locations when comparing directories,
          but not for the top-level FOAM_INST_DIR, WM_PROJECT_DIR.
      
      - relocate WM_CC, WM_CXX overrides from etc/config.*/compiler
        to etc/config.*/settings to ensure that they are left untouched
        when etc/config.sh/compiler is sourced while making third-party
        packages (eg, gcc, llvm, CGAL).
      
      - provide fallback FOAM_TUTORIALS setting in RunFunctions
      
      STYLE: remove "~OpenFOAM" fallback as being too rare, non-obvious
      b970ba09
  19. Mar 14, 2017
  20. Mar 10, 2017
  21. Feb 23, 2017
    • Mark Olesen's avatar
      ENH: use new foamEtcFile options to simplify syntax when sourcing files · c84b9aaa
      Mark Olesen authored
      Can now use this:
          _foamSourceEtc config.sh/scotch
          _foamSourceEtc config.csh/scotch
      
      instead of this:
          _foamSource $($WM_PROJECT_DIR/bin/foamEtcFile config.sh/scotch)
          _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config.csh/scotch`
      
      In the bash/sh version, leave the _foamSource function for now, since
      ThirdParty is still relying on it.
      
      STYLE: elminate while-loop for _foamAddPath etc since this type of
      construct isn't readily possible for csh and isn't being used anywhere.
      c84b9aaa
  22. Feb 20, 2017
  23. Feb 16, 2017
  24. Dec 16, 2016
  25. Dec 15, 2016
  26. Dec 01, 2016
  27. Nov 20, 2016
  28. Nov 04, 2016
  29. Oct 29, 2016
  30. Oct 28, 2016
    • Mark Olesen's avatar
      BUG: etc/bashrc incorrect behaviour if sourced locally (issue #280) · b8448671
      Mark Olesen authored
      - It is incorrect to prefix the assignment with an 'export' since this
        automatically marks the overall command as successful and circumvents
        the fallback.
      
        There is no simple way to have proper behaviour when sourced with a
        local directory path, but at least it now uses the fallback.
      
        It is still easy to wreak the mechanism with valid but confusing input.
        For example,
      
           ". /path/to/openfoam/etc/././bashrc"
      
        The only real certainty is that "${BASH_SOURCE%/*}"
        should point to the 'etc/' directory. In which case,
      
            cd ${BASH_SOURCE%/*}    # <- now in the etc/ directory
            pwd=$(pwd -P)           # <- fully-qualified path to etc/
            pwd=${pwd%/*/*}         # <- up two parent levels
      
        - This works with ". ./bashrc", but fails with ". bashrc"
          (probably not so common).
        - Con: The construct requires an additional sub-shell.
      b8448671
    • Andrew Heather's avatar
    • Mark Olesen's avatar
      053b22a9
  31. Sep 29, 2016
  32. Sep 28, 2016
  33. Sep 03, 2016
  34. Aug 23, 2016
    • Henry Weller's avatar
      etc/bashrc, etc/config.sh: · c482490a
      Henry Weller authored
        - "$FOAM_USER_APPBIN" and "$FOAM_USER_LIBBIN" have been added to
          "foamOldDirs" in "etc/bashrc" and "etc/config.sh/unset"
      
        - "$OPAL_PREFIX" is now undefined in the option "SYSTEMOPENMPI" within
          "etc/config.sh/mpi", but only if the path defined in this variable
          is cleaned when using "foamCleanPath".
      
        - "$OPAL_PREFIX" is now also conditionally undefined in
          "etc/config.sh/unset" when the path is picked up by "foamCleanPath".
      
      Patch contributed by Bruno Santos
      Resolved bug-report http://bugs.openfoam.org/view.php?id=2210
      c482490a
  35. Jul 12, 2016
    • Mark Olesen's avatar
      STYLE: cleanup compiler settings (issue #176) · 787b19c4
      Mark Olesen authored
      - export/setenv WM_COMPILER_TYPE as suggested by Mattijs.
      
      - for overall consistency, don't carp about an unset WM_COMPILER_TYPE,
        since this would only be on the first instance (prior to the
        export/setenv) and would be confusing about why/when this message
        may occur.
      
      - reduce clutter: only use (system|ThirdParty) for WM_COMPILER_TYPE.
        Drop the old 'OpenFOAM' setting for WM_COMPILER_TYPE, which was
        transitional in early 2011.
      
      - make the error messages more meaningful
      787b19c4