Skip to content
Snippets Groups Projects
  1. May 25, 2017
  2. 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
  3. Apr 03, 2017
  4. 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
  5. Mar 22, 2017
  6. 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
  7. Mar 14, 2017
  8. Mar 10, 2017
  9. 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
  10. Feb 20, 2017
  11. Feb 16, 2017
  12. Dec 16, 2016
  13. Dec 15, 2016
  14. Dec 13, 2016
  15. Dec 01, 2016
  16. Oct 30, 2016
  17. Oct 29, 2016
  18. Sep 29, 2016
  19. 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
  20. Jul 01, 2016
  21. Jun 30, 2016
  22. Jun 28, 2016
  23. Jun 21, 2016
  24. Jun 14, 2016
  25. Jun 08, 2016
  26. Jun 06, 2016
  27. May 05, 2016
  28. May 02, 2016
  29. Mar 09, 2016
  30. Feb 22, 2016
  31. Feb 15, 2016
  32. Feb 10, 2016
  33. Dec 22, 2015
  34. Aug 07, 2015