1. 12 Dec, 2019 2 commits
  2. 11 Nov, 2019 1 commit
    • Mark OLESEN's avatar
      ENH: rationalize some string methods. · 7c1190f0
      Mark OLESEN authored
      - silently deprecate 'startsWith', 'endsWith' methods
        (added in 2016: 2b143606), in favour of
        'starts_with', 'ends_with' methods, corresponding to C++20 and
        allowing us to cull then in a few years.
      
      - handle single character versions of starts_with, ends_with.
      
      - add single character version of removeEnd and silently deprecate
        removeTrailing which did the same thing.
      
      - drop the const versions of removeRepeated, removeTrailing.
        Unused and with potential confusion.
      
      STYLE: use shrink_to_fit(), erase()
      7c1190f0
  3. 31 Oct, 2019 1 commit
  4. 05 Nov, 2019 1 commit
  5. 30 Oct, 2019 1 commit
  6. 28 Oct, 2019 2 commits
  7. 30 Sep, 2019 1 commit
  8. 24 Sep, 2019 1 commit
  9. 27 Aug, 2019 1 commit
  10. 29 Jul, 2019 2 commits
    • Mark OLESEN's avatar
      ENH: add readContiguous detail (#1378) · 39834d8f
      Mark OLESEN authored
      - allows some internal handling for reading dissimilar storage types.
        Eg, scalars written as float (WM_SP), but read as double (WM_DP)
      
      - reading binary parcel coordinates with dissimilar storage types is
        still pending
      39834d8f
    • Mark OLESEN's avatar
      ENH: additional contiguous traits (#1378) · 1d79c045
      Mark OLESEN authored
      - change contiguous from a series of global functions to separate
        templated traits classes:
      
          - is_contiguous
          - is_contiguous_label
          - is_contiguous_scalar
      
        The static constexpr 'value' and a constexpr conversion operator
        allow use in template expressions.  The change also makes it much
        easier to define general traits and to inherit from them.
      
        The is_contiguous_label and is_contiguous_scalar are special traits
        for handling data of homogeneous components of the respective types.
      1d79c045
  11. 12 Aug, 2019 1 commit
  12. 29 Jul, 2019 1 commit
  13. 12 Jul, 2019 1 commit
  14. 17 Jul, 2019 1 commit
  15. 19 Jun, 2019 1 commit
  16. 17 Jun, 2019 2 commits
  17. 06 Jun, 2019 1 commit
    • Mark OLESEN's avatar
      ENH: increase robustness of PrecisionAdaptor · bf9d74ba
      Mark OLESEN authored
      - overload the ref() method to allow modification of the referenced
        (non-const) field directly. Same as constCast(), but less typing
        and less prone to error.
      
      - construct ConstPrecisionAdaptor from tmp for improved efficiency.
      bf9d74ba
  18. 29 May, 2019 2 commits
  19. 23 May, 2019 2 commits
  20. 02 May, 2019 1 commit
  21. 27 Mar, 2019 2 commits
  22. 11 Mar, 2019 1 commit
  23. 10 Feb, 2019 1 commit
  24. 27 May, 2019 1 commit
  25. 20 May, 2019 1 commit
  26. 22 May, 2019 1 commit
    • Mark OLESEN's avatar
      ENH: improvements, modernization of matrix containers (#1220) · 061eb53f
      Mark OLESEN authored
      - add iterators, begin/end, empty() methods for STL behaviour.
        Use standard algorithms where possible
           * std::fill, std::copy
           * std::min_element, std::max_element
      
      - access methods consistent with other OpenFOAM containers:
           * data(), cdata(), uniform()
      
      - Use ListPolicy to impose output line breaks
      
      - Can recover matrix storage for re-use elsewhere.
        For example, to populate values with 2D i-j addressing and later
        release it as flat linear storage.
      
      - construct/assign moveable
      
      - added minMax() function for Matrix
      
      - additional inplace +=, -=, *=, /= operations
      
      - add named methods at() and rowData() to Matrix.
        Allows a better distinction between linear and row-based addressing
      
      - low-level matrix solve on List/UList instead of Field
      061eb53f
  27. 07 Jan, 2019 1 commit
  28. 13 Feb, 2019 1 commit
  29. 06 Feb, 2019 1 commit
  30. 11 Dec, 2018 1 commit
    • Mark OLESEN's avatar
      ENH: use Zero when zero-initializing types · 1d85fecf
      Mark OLESEN authored
      - makes the intent clearer and avoids the need for additional
        constructor casting. Eg,
      
            labelList(10, Zero)    vs.  labelList(10, 0)
            scalarField(10, Zero)  vs.  scalarField(10, scalar(0))
            vectorField(10, Zero)  vs.  vectorField(10, vector::zero)
      1d85fecf
  31. 06 Nov, 2018 1 commit
  32. 05 Nov, 2018 1 commit
    • Mark OLESEN's avatar
      ENH: extend globalIndex toGlobal methods · f5baa9a5
      Mark OLESEN authored
      - now applicable to labelLists.
      
      Note:
        in some situations it will be more efficient to use
        Foam::identity() directly. Eg,
      
           globalIndex globalCells(mesh.nCells());
           ...
           labelList cellIds
           (
               identity(globalCells.localSize(), globalCells.localStart())
           );
      f5baa9a5
  33. 03 Nov, 2018 1 commit