Skip to content
Snippets Groups Projects
  1. May 17, 2018
    • Haakan Nilsson's avatar
      STYLE: foamPwd (posix) function with some env replacements (issue #844) · d8ea41e7
      Haakan Nilsson authored and Mark OLESEN's avatar Mark OLESEN committed
      - the current working path with replacements for base-level
        OpenFOAM env variables such as FOAM_RUN, WM_PROJECT_DIR,
        WM_PROJECT_USER_DIR etc
      
        Can be used directly from the command-line or embedded into a
        command prompt. For example,
      
            PS1='$(foamPwd)\n\u\$ '
      
      - aliases for user solver/utilities located under "$WM_PROJECT_USER_DIR":
        (ufoam, uapp, usol, uutil)
      d8ea41e7
  2. May 21, 2018
  3. May 15, 2018
  4. May 14, 2018
  5. May 11, 2018
  6. May 07, 2018
  7. Apr 30, 2018
  8. Apr 27, 2018
    • Mark OLESEN's avatar
      ENH: make format of ExecutionTime = ... output configurable (issue #788) · dd8341f6
      Mark OLESEN authored
      - controlled by the the 'printExecutionFormat' InfoSwitch in
        etc/controlDict
      
            // Style for "ExecutionTime = " output
            // - 0 = seconds (with trailing 's')
            // - 1 = day-hh:mm:ss
      
         ExecutionTime = 112135.2 s  ClockTime = 113017 s
      
         ExecutionTime = 1-07:08:55.20  ClockTime = 1-07:23:37
      
      - Callable via the new Time::printExecutionTime() method,
        which also helps to reduce clutter in the applications.
        Eg,
      
           runTime.printExecutionTime(Info);
      
        vs
      
           Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
               << "  ClockTime = " << runTime.elapsedClockTime() << " s"
               << nl << endl;
      
      --
      
      ENH: return elapsedClockTime() and clockTimeIncrement as double
      
      - previously returned as time_t, which is less portable.
      dd8341f6
  9. Apr 24, 2018
    • Mark OLESEN's avatar
      CONFIG: adjust make scripts for darwin · 76cb38fb
      Mark OLESEN authored
      - handling of dead links (find -L -delete unsupported)
      
      - remove ignore case flag on 's/../../i' used in have_scotch script.
        It is unneeded and not tolerated by Darwin's sed.
      
      - avoid embedded comments in EXE_INC (Make/options files), which do
        not work well with the OSX LLVM cpp.
        It strips out the comments but also removes the continuation char.
      
      STYLE: adjust notes about paraview library locations
      76cb38fb
    • Mark OLESEN's avatar
      CONFIG: remove WM_LINK_LANGUAGE env variable (always c++) · 2768500d
      Mark OLESEN authored
      - was somewhat redundant in wmake/rules/General/general anyhow
      2768500d
    • 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 reduci...
      b4d38ab4
  10. Apr 19, 2018
  11. Apr 16, 2018
    • Mark OLESEN's avatar
      ENH: add alternative STL ASCII parsers · ea71484e
      Mark OLESEN authored
      - In addition to the traditional Flex-based parser, added a Ragel-based
        parser and a handwritten one.
      
        Some representative timings for reading 5874387 points (1958129 tris):
      
            Flex   Ragel   Manual
            5.2s   4.8s    6.7s         total reading time
            3.8s   3.4s    5.3s         without point merging
      ea71484e
  12. Apr 12, 2018
  13. Apr 11, 2018
    • Mark OLESEN's avatar
      ENH: allow "<case>", "<system>" ... in the string expansions (issue #792) · 5f88e427
      Mark OLESEN authored
      - the expansions were previously required as slash to follow, but
        now either are possible.
      
          "<case>", "<case>/" both yield the same as "$FOAM_CASE" and
          will not have a trailing slash in the result. The expansion of
          "$FOAM_CASE/" will however have a trailing slash.
      
      - adjust additional files using these expansions
      5f88e427
  14. Apr 09, 2018
  15. Apr 11, 2018
  16. Apr 10, 2018
  17. Mar 21, 2018
  18. Mar 07, 2018
    • Mark OLESEN's avatar
      ENH: new bitSet class and improved PackedList class (closes #751) · bac943e6
      Mark OLESEN authored
      - The bitSet class replaces the old PackedBoolList class.
        The redesign provides better block-wise access and reduced method
        calls. This helps both in cases where the bitSet may be relatively
        sparse, and in cases where advantage of contiguous operations can be
        made. This makes it easier to work with a bitSet as top-level object.
      
        In addition to the previously available count() method to determine
        if a bitSet is being used, now have simpler queries:
      
          - all()  - true if all bits in the addressable range are empty
          - any()  - true if any bits are set at all.
          - none() - true if no bits are set.
      
        These are faster than count() and allow early termination.
      
        The new test() method tests the value of a single bit position and
        returns a bool without any ambiguity caused by the return type
        (like the get() method), nor the const/non-const access (like
        operator[] has). The name corresponds to what std::bitset uses.
      
        The ...
      bac943e6
  19. Mar 05, 2018
  20. Jan 24, 2018
  21. Jan 22, 2018
  22. Jan 16, 2018
    • Mark OLESEN's avatar
      CONFIG: typo in config.csh/mpi · ff07ae15
      Mark OLESEN authored
      - also handle stray semi-colons in foamCleanPath.
        Treat like a ':' separator.
        They are incorrect and potentially problematic for shell evals.
      ff07ae15
  23. Jan 11, 2018
    • Mark OLESEN's avatar
      ENH: improved handling of gmp/mpfr library settings (issue #674) · 110b00f0
      Mark OLESEN authored
      - export library path for gmp/mpfr from CGAL config files.
        This is required when non-system gmp/mpfr libraries are being
        used, but not using a ThirdParty compiler installation.
      
      - automatically handle lib/ vs lib64/ (eg, for central installations)
        for packages such as boost, CGAL, etc. While the ThirdParty
        compilation of these will normally land in lib64/, this may not be
        the case when they are supplied by another means.
      
      - reworked the handling of foamEtcFile and foamCleanPath for less
        clutter in the configuration files.
        Added the bin/tools/lib-dir script to handle logic that is
        too complex to easily manage in csh.
      110b00f0
  24. Jan 08, 2018
    • Mark OLESEN's avatar
    • Mark OLESEN's avatar
      ENH: improve robustness of scalarRanges from string (fixes #673) · f55a42a8
      Mark OLESEN authored
      - now avoid Istream and token mechanism in favour of a simpler string
        parser. This makes the code clearer, smaller, robuster.
      
      - provide convenience ge/gt/le/lt static constructors for scalarRange
        for using bounds directly with specifying via a string parameter.
      
      - scalarRange, scalarRanges now follow the unary predicate pattern
        (using an operator() for testing). This allows their reuse in
        other contexts. Eg, for filtering operations:
      
            myHash.filterValues(scalarRange::ge(100));
      
      - remove unused scalarRanges methods that were specific to handling
        lists of time values. These were superseded by timeSelector methods
        several versions ago.
      f55a42a8
  25. Dec 30, 2017
  26. Dec 21, 2017
  27. Dec 19, 2017
    • Mark OLESEN's avatar
      CONFIG: add clang third-party lib to LD_LIBRARY_PATH · 995c55b6
      Mark OLESEN authored
      - required if there is no system openmp and libomp or libgomp are
        only found in the clang hierarchy
      
      STYLE: add some notes in the openmp rules.
      
      - the _OPENMP macro is now used in low-level testing files
      995c55b6
    • Mark OLESEN's avatar
      ENH: additional options for transforming points (closes #660) · 00325db3
      Mark OLESEN authored
      - The -rotate-angle option allows convenient specification of a
        rotation about an arbitrary axis. Eg, -rotate-angle '((1 1 1) 45)'
      
      - The -origin option can be used to temporarily shift the origin
        for the rotation operations. For example,
      
            -origin '(0 0 1)' -rotate-angle '((1 0 0) 180)'
      
        for mirroring.
      00325db3
  28. Dec 18, 2017
  29. Dec 17, 2017
  30. Dec 15, 2017
  31. Dec 14, 2017