Skip to content
Snippets Groups Projects
  1. Nov 29, 2018
    • Mark OLESEN's avatar
      ENH: relocate WM_PROJECT_SITE default (issue #1050) · 9e094f1f
      Mark OLESEN authored
      - was PREFIX/site, now PROJECT/site
      
        This avoids several issues when installing OpenFOAM in clusters
        without an intermediate OpenFOAM-specific installation prefix.
      
        The 'site' directory may have a reserved meaning in these situations
        and it is undesirable to 'leak' upwards into the parent directory to
        look for configuration files.
      
        Placing the default within the project directory avoids this.
        Alternative locations can be given via the WM_PROJECT_SITE variable.
      9e094f1f
    • Mark OLESEN's avatar
      ENH: improve setup for paraview · 628b2445
      Mark OLESEN authored
      - removed reliance on ParaView_INCLUDE_DIR variable for conveying the
        major.minor version information when compiling. This can be somewhat
        fragile and also adds variable that is an unnecessary when running
        (only used when compiling).
      
        Instead use `have_pvplugin_support` function in paraviewFunctions
        wmake script to determine the maj.min from the PV_PLUGIN_PATH
        since we have already defined the output path there with paraview
        maj.min numbering.
      
        Can now build with paraview from the operating system,
        provided that it has develop headers available.
      
            ParaView_VERSION=system
      
        In the etc/config.sh/paraview setup, the maj.min is taken from
        the corresponding `paraview --version` output and used when
        defining the PV_PLUGIN_PATH.
      
        During the build, the include path taken from `paraview-config`
        for a system installation, from the guess installation root
        of the paraview binary, or ParaView_DIR otherwise.
      
      NB: using a system ParaView for building runTimePostProcessing is unsupported.
      
      - these types of builds appear to have various library resolution issues
        (eg, libexpat not being loaded). Additionally, the build logic does
        not yet cover this type of use case.
      628b2445
  2. Nov 28, 2018
  3. Nov 25, 2018
  4. Nov 23, 2018
  5. Nov 22, 2018
  6. Nov 21, 2018
  7. Nov 19, 2018
  8. Nov 15, 2018
  9. Oct 15, 2018
  10. Oct 12, 2018
  11. Sep 12, 2018
  12. Aug 08, 2018
    • Mark OLESEN's avatar
      ENH: ignore -noFunctionObjects option when disabled · e0f83938
      Mark OLESEN authored
      - With argList::noFunctionObjects() we use the logic added in
        4b933332 (issue #352)
      
        By removing the '-noFunctionObjects' option, we automatically
        suppress the creation of function-objects via Time (with argList
        as a parameter).
        There is generally no need in these cases for an additional
      
            runTime.functionObjects().off()  statement
      
        Use the argList::noFunctionObjects() for more direct configuration
        and reduce unnecessary clutter in the -help information.
      
        In previous versions, the -noFunctionObjects would have been redundant
        anyhow, so we can also just ignore it now instead.
      e0f83938
  13. Aug 07, 2018
  14. Jun 27, 2018
  15. Jun 26, 2018
  16. Jun 25, 2018
    • Mark OLESEN's avatar
      CONFIG: eliminate most occurances of outdated FOAM_INST_DIR (issue #444) · 831a47b8
      Mark OLESEN authored
      - since 1612, FOAM_INST_DIR and foamInstDir longer have any
        special meanings when sourcing the bashrc or cshrc files.
        Thus no need for special treatment in any of the dispatch wrappers.
      
        Retained FOAM_INST_DIR as (unexported) variable in etc/bashrc,
        just in case people are using patched versions of etc/bashrc
        as part of their installation.
      
      ENH: relax prefix restrictions on foamCreateVideo (issue #904)
      
      - shift the implicit '.' to be part of the default prefix. This allows
        things like "-image myimages_00" to work as might be expected.
      831a47b8
  17. Jun 24, 2018
  18. Jun 19, 2018
    • Mark OLESEN's avatar
      ENH: avoid parse problems caused by #calc directives (fixes #722) · d637b6eb
      Mark OLESEN authored
      - The additional output generated by #calc directives in the
        controlDict or decomposeParDict causes issues for the RunFunctions
        extraction of 'application' and 'numberOfSubdomains'.
      
        Avoid by using -disableFunctionEntries, which also has the side-effect
        of disabling '#include'.
      d637b6eb
  19. Jun 22, 2018
    • Mark OLESEN's avatar
      BUG: cleanCase deletes blockMeshDict (fixes #900) · b68fe2c7
      Mark OLESEN authored
      - Don't remove the constant/polyMesh directory if it contains a
        blockMeshDict or blockMeshDict.m4 file. Offer a reminder that
        system/ is the normal place for it.
      b68fe2c7
    • Mark OLESEN's avatar
      ENH: suppress Info output for some cases (issue #722, #893) · 6390c183
      Mark OLESEN authored
      - add additional control via a Foam::infoDetailLevel flag, which is
        supported by a 'DetailLevel' macro.  Eg,
      
            DetailLevel << "some information" << nl
      
      - When infoDetailLevel is zero, the stdout for all Foam::system() calls
        are also redirected to stderr to prevent child output from
        appearing on the parent.
      
      - close stdin before exec in system call.
      6390c183
  20. Jun 19, 2018
  21. Jun 18, 2018
  22. Jun 08, 2018
  23. Dec 21, 2017
  24. Dec 18, 2017
  25. Dec 17, 2017
  26. Dec 15, 2017
  27. Dec 14, 2017
  28. Dec 13, 2017
  29. May 02, 2018
  30. Apr 24, 2018
    • Mark OLESEN's avatar
      ENH: improve handling of ThirdParty packages · b4d38ab4
      Mark OLESEN authored
      - generalize some of the library extensions (.so vs .dylib).
        Provide as wmake 'sysFunctions'
      
      - added note about unsupported/incomplete system support
      
      - centralize detection of ThirdParty packages into wmake/ subdirectory
        by providing a series of scripts in the spirit of GNU autoconfig.
        For example,
      
            have_boost, have_readline, have_scotch, ...
      
        Each of the `have_<package>` scripts will generally provide the
        following type of functions:
      
            have_<package>          # detection
            no_<package>            # reset
            echo_<package>          # echoing
      
        and the following type of variables:
      
            HAVE_<package>          # unset or 'true'
            <package>_ARCH_PATH     # root for <package>
            <package>_INC_DIR       # include directory for <package>
            <package>_LIB_DIR       # library directory for <package>
      
        This simplifies the calling scripts:
      
            if have_metis
            then
                wmake metisDecomp
            fi
      
        As well as reducing clutter in the corresponding Make/options:
      
            EXE_INC = \
                -I$(METIS_INC_DIR) \
                -I../decompositionMethods/lnInclude
      
            LIB_LIBS = \
                -L$(METIS_LIB_DIR) -lmetis
      
        Any additional modifications (platform-specific or for an external build
        system) can now be made centrally.
      b4d38ab4
  31. Apr 17, 2018