Skip to content
Snippets Groups Projects
  1. Apr 08, 2020
    • Mark OLESEN's avatar
      CONFIG: improve config files for Darwin (#1667), BSD-csh syntax (#1668) · f01ad2f1
      Mark OLESEN authored
      - use Clang instead of Gcc for Darwin since this is its system
        compiler. The user can force use of Gcc by using Gcc92 etc.
      
      - make etc/cshrc sed check more robust.
      
      - replace tcsh (${%var}) syntax with ("${var}" != "")
      
      [Fixes and ideas from Alexey Matveichev]
      
      CONFIG: do not source the gperftools environment by default
      
      - this is now an used feature, but can be re-enabled by advanced users
        if required.
      f01ad2f1
  2. Mar 25, 2020
  3. Mar 18, 2020
  4. 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
      CONFIG: support FOAM_EXTRA_CXXFLAGS (#1256) · ac8b64df
      Mark OLESEN authored
      - allows custom tuning of compilation parameters
      ac8b64df
    • 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
  5. Mar 12, 2020
    • Mark OLESEN's avatar
      ENH: adjust sampling onto meshed surfaces (#1600) · 06c4dc34
      Mark OLESEN authored
      - base level surface container is now a meshedSurface instead of
        a triSurface. This avoid automatic triangulation of surfaces
        when they are read, and simplifies the internals.
      
      - sampling types:
        * "meshedSurface" (compat: "sampledTriSurfaceMesh")
        * "meshedSurfaceNormal" (compat: "sampledTriSurfaceMeshNormal")
      06c4dc34
  6. 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
  7. Feb 20, 2020
  8. Feb 12, 2020
    • 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
  9. 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
  10. Feb 05, 2020
  11. Feb 03, 2020
  12. Jan 16, 2020
    • Mark OLESEN's avatar
      ENH: consistency improvements for surface patch handling (fixes #483) · 2a98c4e6
      Mark OLESEN authored
      - remove (unused) Istream constructors, prune some unused methods,
        rationalize write() vs writeDict().
        Deprecate inconsistent construction order.
      
      - handle empty names for ".ftr" surface patches (for plain triSurface
        format) with double-quoted strings for more reliable streaming.
        Written on a single line.
      
        This is _backward_ compatible, but if users have been parsing these
        files manually, they will need to adjust their code.
      
      Previously:
      ```
        (
        frt-fairing:001%1
        empty
      
        windshield:002%2
        empty
        ...
        )
      ```
      
      Updated (with example handling of empty name):
      ```
        (
        frt-fairing:001%1 empty
      
        windshield:002%2 ""
        ...
        )
      ```
      2a98c4e6
  13. Jan 10, 2020
  14. Dec 23, 2019
  15. Dec 19, 2019
  16. Dec 17, 2019
  17. Dec 16, 2019
  18. Dec 13, 2019
    • Mark OLESEN's avatar
      STYLE: adjust deprecations for OSspecific · b61d4ab4
      Mark OLESEN authored
      - skip processing OSspecific/MSwindows since this can cause duplicate
        doxygen entries
      
      STYLE: adjust formatting in code templates
      
      STYLE: use std::string methods without extra qualifications
      b61d4ab4
  19. Dec 12, 2019
    • Mark OLESEN's avatar
      CONFIG: prefer use of ParaView_MESA_DIR in runTimePostProcessing · a8ab9b87
      Mark OLESEN authored
      - when using VTK from ParaView sources it can better to tag them as
        such, but simultaneously not mask the ParaView with hardware
        rendering.
      
        The additional ParaView_MESA_DIR variable allows this.
        The balance of library and path setup is unaffected by this.
      
      DOC: update doc/BuildIssues
      a8ab9b87
  20. Nov 27, 2019
  21. Nov 26, 2019
  22. Nov 25, 2019
  23. Nov 15, 2019
  24. Nov 13, 2019
  25. Oct 31, 2019
  26. Nov 11, 2019
  27. Sep 25, 2019
  28. Nov 06, 2019
  29. Nov 05, 2019
  30. Nov 01, 2019
  31. Oct 30, 2019
  32. Oct 28, 2019
  33. Oct 02, 2019
  34. Sep 25, 2019
  35. Aug 16, 2019