Skip to content
Snippets Groups Projects
  1. Aug 10, 2017
  2. Jul 31, 2017
    • Mark OLESEN's avatar
      ENH: improve bash completion functionality (issue #551) · d41647ca
      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.
      d41647ca
  3. Jul 06, 2017
    • Mark OLESEN's avatar
      ENH: add trapFpe and setNaN optimisationSwitch (issue #517) · cad6fb21
      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.
      cad6fb21
  4. Jun 21, 2017
  5. Jun 14, 2017
  6. Jun 08, 2017
  7. Apr 20, 2017
    • mark's avatar
      CONFIG: address differences between shells · daedbe27
      mark 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.
      daedbe27
  8. Apr 03, 2017
    • mark's avatar
      bf63d963
    • mark's avatar
      ENH: default jobControl now under the '~/.OpenFOAM/jobControl' directory · aa5e5c29
      mark authored
      - this implies that jobControl is a user-resource for OpenFOAM.
        It was previously located under $WM_PROJECT_INST_DIR/jobControl,
        but few users will have write access there.
      
      - an unset FOAM_JOB_DIR variable is treated as "~/.OpenFOAM/jobControl",
        which can partially reduce environment clutter.
      
      - provide argList::noJobInfo() to conveniently suppress job-info on an
        individual basis for short-running utilities (eg, foamListTimes) to
        avoid unneeded clutter.
      aa5e5c29
  9. Mar 30, 2017
    • mark's avatar
      ENH: improve MPI configuration possibilities · fbd1d7f1
      mark 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.
      fbd1d7f1
  10. Mar 23, 2017
  11. Mar 22, 2017
    • mark's avatar
      ENH: source 'other' prefs before user/group · f6e36896
      mark authored
      - this allows the sys-admin to provide base values independent of any
        WM_PROJECT_SITE value.
      f6e36896
    • mark's avatar
      ENH: minor improvements to environment · 3751ce52
      mark 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
      3751ce52
    • mark's avatar
      STYLE: drop _foamSource definition (unneeded). · 92065e2b
      mark authored
      92065e2b
  12. Mar 13, 2017
  13. Mar 10, 2017
  14. Feb 23, 2017
    • mark's avatar
      ENH: use new foamEtcFile options to simplify syntax when sourcing files · 3e071386
      mark 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.
      3e071386
  15. Feb 21, 2017
  16. Feb 16, 2017
  17. Dec 17, 2016
  18. Dec 15, 2016
  19. Dec 01, 2016
  20. Nov 20, 2016
  21. Nov 04, 2016
  22. Oct 29, 2016
  23. Oct 28, 2016
    • mark's avatar
      BUG: etc/bashrc incorrect behaviour if sourced locally (issue #280) · ac0a67da
      mark 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.
      ac0a67da
    • Andrew Heather's avatar
    • mark's avatar
      STYLE: incorrect project setting in etc/bashrc · ea200ff4
      mark authored
      ea200ff4
  24. Sep 29, 2016
    • mark's avatar
      CONFIG: remove foundation use of FOAMY_HEX_MESH control. · 5dc3b427
      mark authored
      - instead we use the CGAL settings directly since they have the
        same option of (version | system | none)
      
      - may wish to review this again in the future.
      5dc3b427
    • mark's avatar
      STYLE: cleanup compiler settings (issue #176) · 5c873516
      mark 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
      5c873516
  25. Sep 28, 2016
  26. Sep 03, 2016
  27. Aug 23, 2016
    • Henry Weller's avatar
      etc/bashrc, etc/config.sh: · 73c48c5a
      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
      73c48c5a
  28. Jul 01, 2016
  29. Jun 28, 2016
  30. Jun 14, 2016
  31. Jun 08, 2016
  32. Jun 06, 2016