1. 12 Dec, 2019 3 commits
    • Kutalmış Berçin's avatar
    • Kutalmış Berçin's avatar
      ENH: add new funcs into `SquareMatrix` · 64614cfc
      Kutalmış Berçin authored
          - query func `symmetric()`
          - query func `tridiagonal()`
          - `resize()`
          - `labelpair` identity constructor
      
          STYLE: add `#if(0 | RUNALL)` to improve test control in Test-Matrix
      64614cfc
    • Mark OLESEN's avatar
      ENH: update handling of "writeTime" in timeControl class · 280be631
      Mark OLESEN authored
      - handle zero or negative values as being identical to 1.
        As per timeStep control and what the comments suggested.
      
      - drop old outputTime enumeration, since this is covered by the
        writeTime enumeration and a corresponding Enum name.
      
      - support construction of a "pass-through" control object that always
        executes and add some method to test for these conditions and be able
        to output some meaning full information.
        Eg,
      
           if (ctrl.execute())
           {
               if (!ctrl.always())
               {
                   Info<< "Sampling executed based on " << ctrl.type() << nl;
               }
               ...
           }
      
           To produce "Sampling executed based on runTime"
      280be631
  2. 11 Dec, 2019 3 commits
  3. 10 Dec, 2019 1 commit
  4. 09 Dec, 2019 3 commits
  5. 06 Dec, 2019 6 commits
  6. 03 Dec, 2019 1 commit
  7. 09 Dec, 2019 1 commit
  8. 06 Dec, 2019 2 commits
    • Mark OLESEN's avatar
      ENH: improve exprResult handling · 17869747
      Mark OLESEN authored
      - some support for "uniform" bool fields. Calculating an averaged
        value for a boolField does not work very well, but we simply define
        that the field average is 'true' when more than 1/2 of its values
        are true. Not exactly true, but allows templated definitions to work
        smoothly.
      
      - additional output method writeValue().
        This outputs the single (uniform) value or the first value of the
        field.
      17869747
    • Mark OLESEN's avatar
      ENH: add ITstream append and seek methods. · 9fd696e1
      Mark OLESEN authored
      - ITstream append() would previously have used the append from the
        underlying tokenList, which leaves the tokenIndex untouched and
        renders the freshly appended tokens effectively invisible if
        interspersed with primitiveEntry::read() that itself uses tokenIndex
        when building the list.
      
        The new append() method makes this hidden ITstream bi-directionality
        easier to manage. For efficiency, we only append lists
        (not individual tokens) and support a 'lazy' resizing that allows
        the final resizing to occur later when all tokens have been appended.
      
      - The new ITstream seek() method provides a conveniently means to move
        to the end of the list or reposition to the middle.
        Using rewind() and using seek(0) are identical.
      
      ENH: added OTstream to output directly to a list of tokens
      
      ---
      
      BUG: List::newElem resized incorrectly
      
      - had a simple doubling of the List size without checking that this
        would indeed be sufficient for the requested index.
      
        Bug was not triggered since primitiveEntry was the only class using
        this call, and it added the tokens sequentially.
      9fd696e1
  9. 07 Dec, 2019 2 commits
  10. 03 Dec, 2019 1 commit
  11. 02 Dec, 2019 1 commit
  12. 27 Nov, 2019 1 commit
  13. 26 Nov, 2019 2 commits
  14. 25 Nov, 2019 1 commit
    • Mark OLESEN's avatar
      ENH: add clear/append method to Enum and std::ostream output · 6dd3cd0e
      Mark OLESEN authored
      - allows use of Enum in more situations where a tiny Map/HashTable
        replacement is desirable. The new methods can be combined with
        null constructed for to have a simple low-weight caching system
        for words/integers instead of fitting in a HashTable.
      6dd3cd0e
  15. 18 Nov, 2019 1 commit
  16. 22 Nov, 2019 2 commits
  17. 20 Nov, 2019 2 commits
  18. 21 Nov, 2019 2 commits
  19. 20 Nov, 2019 3 commits
  20. 19 Nov, 2019 2 commits
    • Mark OLESEN's avatar
      ENH: add move reset and move assignment for tmp, tmpNrc · 83d6aa42
      Mark OLESEN authored
      - improves similarity to autoPtr. Simplifies coding.
      
        Example,
      
          tmp<volScalarField> tfield;
      
          // sometime later...
      
          tfield.reset
          (
              volScalarField::New("myfield", mesh, dimensionedScalar(Zero))
          );
      
      - as per tmp, disallow tmpNrc assignment from literal nullptr
      
      - as per autoPtr, allow explicit test as bool (same as valid).
      83d6aa42
    • Mark OLESEN's avatar
      ENH: add conditionals to #eval (string to scalar) · 9e6683f7
      Mark OLESEN authored
      Example,
      
           ($radius > 10) ? sin(degToRad(45)) : cos(degToRad(30))
      
      - protect division and modulo against zero-divide.
      
      - add scanner/parser debugging switches in the namespace,
        selectable as "stringToScalar". For example,
      
          debug parser:  foamDictionary -debug-switch stringToScalar=2
          debug scanner: foamDictionary -debug-switch stringToScalar=4
          debug both:    foamDictionary -debug-switch stringToScalar=6
      9e6683f7